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

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: Created 5 years, 1 month 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 c5c1755c654752e8d255c94e3d25ddddc04fb73e..163a511d678bdb03c27163a451eef35870cf4dbc 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -105,6 +105,10 @@ public:
void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { m_replacesCurrentHistoryItem = replacesCurrentHistoryItem; }
bool isCommittedButEmpty() const { return m_state == Committed; }
+
+ void setSentDidFinishLoad() { m_state = SentDidFinishLoad; }
+ bool sentDidFinishLoad() const { return m_state == SentDidFinishLoad; }
+
NavigationType navigationType() const { return m_navigationType; }
void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; }
@@ -232,7 +236,8 @@ private:
Provisional,
Committed,
DataReceived,
- MainResourceDone
+ MainResourceDone,
+ SentDidFinishLoad
};
State m_state;

Powered by Google App Engine
This is Rietveld 408576698