bool update() override { if (!isPreloaded()) { return false; } return onUpdate(*this); }
void Resource::error(Resource::Status status) { if (!m_revalidatingRequest.isNull()) m_revalidatingRequest = ResourceRequest(); if (!m_error.isNull() && (m_error.isCancellation() || !isPreloaded())) memoryCache()->remove(this); setStatus(status); ASSERT(errorOccurred()); m_data.clear(); setLoading(false); checkNotify(); markClientsFinished(); }