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) { |