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

Unified Diff: Source/platform/exported/WebURLRequest.cpp

Issue 339593005: Set the target type when creating the request for main resource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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: Source/platform/exported/WebURLRequest.cpp
diff --git a/Source/platform/exported/WebURLRequest.cpp b/Source/platform/exported/WebURLRequest.cpp
index f74541315816c78cb0be49ab80c035cb613f5eae..4572375971cb627bcf393a6c398ff0cba89c0da8 100644
--- a/Source/platform/exported/WebURLRequest.cpp
+++ b/Source/platform/exported/WebURLRequest.cpp
@@ -101,6 +101,11 @@ void WebURLRequest::assign(const WebURLRequest& r)
assign(r.m_private ? new WebURLRequestPrivateImpl(r.m_private) : 0);
}
+void WebURLRequest::initializeForMainResource(bool isMainFrame)
+{
+ m_private->m_resourceRequest->initializeForMainResource(isMainFrame);
+}
+
bool WebURLRequest::isNull() const
{
return !m_private || m_private->m_resourceRequest->isNull();

Powered by Google App Engine
This is Rietveld 408576698