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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.cpp

Issue 1964803002: Trace FrameLoader object snapshots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win failure Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.cpp b/third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.cpp
index 92eaeb32698f705e00b349bcd2e521aeb769c4c4..b5d7a9d326369a52689ce5a6a09e601e67560d54 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.cpp
@@ -29,6 +29,7 @@
#include "core/loader/FrameLoaderStateMachine.h"
#include "wtf/Assertions.h"
+#include "wtf/text/WTFString.h"
namespace blink {
@@ -64,4 +65,21 @@ void FrameLoaderStateMachine::advanceTo(State state)
m_state = state;
}
+String FrameLoaderStateMachine::toString() const
+{
+ switch (m_state) {
+ case CreatingInitialEmptyDocument:
+ return "CreatingInitialEmptyDocument";
+ case DisplayingInitialEmptyDocument:
+ return "DisplayingInitialEmptyDocument";
+ case CommittedFirstRealLoad:
+ return "CommittedFirstRealLoad";
+ case CommittedMultipleRealLoads:
+ return "CommittedMultipleRealLoads";
+ default:
+ ASSERT_NOT_REACHED();
+ }
+ return "";
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoaderStateMachine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698