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

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

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: PlzNavigate: preserve SourceLocation when navigating Created 3 years, 10 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 8c7197c9cf02e49345d3896bd0f73b46319f9d07..a5c3b32a58dcd5f2e22efc14529298a64ef303ba 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -229,6 +229,15 @@ Resource* DocumentLoader::startPreload(Resource::Type type,
return resource;
}
+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) {

Powered by Google App Engine
This is Rietveld 408576698