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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WebFrameTest.CallbackOrdering race Created 5 years, 2 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/loader/DocumentLoader.h
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.h b/third_party/WebKit/Source/core/loader/DocumentLoader.h
index 43fd4d53f10bdc57efa5caa7df651072ed759ee2..808362c32b5f3456f7aec98140a3870323cc1e23 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -106,6 +106,9 @@ public:
bool isCommittedButEmpty() const { return m_state == Committed; }
+ void setSentDidFinishLoad() { m_state = SentDidFinishLoad; }
+ bool sentDidFinishLoad() const { return m_state == SentDidFinishLoad; }
+
bool shouldContinueForNavigationPolicy(const ResourceRequest&, ContentSecurityPolicyDisposition shouldCheckMainWorldContentSecurityPolicy, NavigationPolicy = NavigationPolicyCurrentTab);
NavigationType navigationType() const { return m_navigationType; }
void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; }
@@ -234,7 +237,8 @@ private:
Provisional,
Committed,
DataReceived,
- MainResourceDone
+ MainResourceDone,
+ SentDidFinishLoad
};
State m_state;

Powered by Google App Engine
This is Rietveld 408576698