Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2210473002: Mark ResourceClient/ImageResourceObserver finished just before notifying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflect comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 471249d76b8b0c592d62abc1705f79024817585b..22e1039e40225469d9f7925a165418f15cbea0a0 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -249,6 +249,13 @@ protected:
virtual void checkNotify();
+ enum class MarkFinishedOption {
+ ShouldMarkFinished,
+ DoNotMarkFinished
+ };
+ void notifyClientsInternal(MarkFinishedOption);
+ void markClientFinished(ResourceClient*);
+
virtual void destroyDecodedDataForFailedRevalidation() { }
void setEncodedSize(size_t);
@@ -283,8 +290,6 @@ protected:
virtual bool isSafeToUnlock() const { return false; }
virtual void destroyDecodedDataIfPossible() { }
- virtual void markClientsAndObserversFinished();
-
// Returns the memory dump name used for tracing. See Resource::onMemoryDump.
String getMemoryDumpName() const;

Powered by Google App Engine
This is Rietveld 408576698