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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index f351ee6dc1ee5aa31edd66815b6a9ff97cd231fb..d9d3d6b768e3efc3e19a6aa69e1f6ebc638169b2 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -235,6 +235,15 @@ void DocumentLoader::setServiceWorkerNetworkProvider(
m_serviceWorkerNetworkProvider = std::move(provider);
}
+void DocumentLoader::setSourceLocation(
+ std::unique_ptr<SourceLocation> sourceLocation) {
+ m_sourceLocation = std::move(sourceLocation);
+}
+
+std::unique_ptr<SourceLocation> DocumentLoader::copySourceLocation() const {
+ return m_sourceLocation ? m_sourceLocation->clone() : nullptr;
+}
+
void DocumentLoader::dispatchLinkHeaderPreloads(
ViewportDescriptionWrapper* viewport,
LinkLoader::MediaPreloadPolicy mediaPolicy) {
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.h ('k') | third_party/WebKit/Source/web/LocalFrameClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698