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 59b86858fb918079b9cd8b53a88cb3e7fbbdc15f..2379583864569b839abb37527d521d78c824deeb 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) { |