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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 2416523002: Expose the initiating origin/URL of a navigation in the Blink public API (Closed)
Patch Set: Use less memory, add tests, etc. Created 4 years, 1 month 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/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index 2081e50930d46df5178f439c030e0c500b6519f8..a6b980be570696c87f9469c1cd5914916b5d4d7b 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -681,11 +681,11 @@ DocumentLoader* FrameLoaderClientImpl::createDocumentLoader(
LocalFrame* frame,
const ResourceRequest& request,
const SubstituteData& data,
- ClientRedirectPolicy clientRedirectPolicy) {
- WebDataSourceImpl* ds =
- WebDataSourceImpl::create(frame, request, data, clientRedirectPolicy);
- if (m_webFrame->client())
- m_webFrame->client()->didCreateDataSource(m_webFrame, ds);
+ ClientRedirectPolicy clientRedirectPolicy,
+ Document* requestorDocument) {
+ WebDataSourceImpl* ds = WebDataSourceImpl::create(
+ frame, request, data, clientRedirectPolicy, requestorDocument);
+ m_webFrame->client()->didCreateDataSource(m_webFrame, ds);
return ds;
}

Powered by Google App Engine
This is Rietveld 408576698