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

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

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: Fix rebase compilation issues Created 3 years, 9 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 112552f99649d29fe91f4fcab8e72eb8dd95fe86..cb84c36ac2b2366da1675ad4ef2202b610db88d1 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -30,6 +30,8 @@
#ifndef DocumentLoader_h
#define DocumentLoader_h
+#include <memory>
+#include "bindings/core/v8/SourceLocation.h"
#include "core/CoreExport.h"
#include "core/dom/ViewportDescription.h"
#include "core/dom/WeakIdentifierMap.h"
@@ -200,6 +202,9 @@ class CORE_EXPORT DocumentLoader
return m_serviceWorkerNetworkProvider.get();
}
+ std::unique_ptr<SourceLocation> copySourceLocation() const;
+ void setSourceLocation(std::unique_ptr<SourceLocation>);
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -303,6 +308,11 @@ class CORE_EXPORT DocumentLoader
bool m_wasBlockedAfterCSP;
+ // PlzNavigate: set when committing a navigation. The data has originally been
+ // captured when the navigation was sent to the browser process, and it is
+ // sent back at commit time.
+ std::unique_ptr<SourceLocation> m_sourceLocation;
+
enum State {
NotStarted,
Provisional,
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.cpp ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698