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

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

Issue 352313003: Make it possible to set the HTTP origin header from content (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
« no previous file with comments | « Source/core/page/CreateWindow.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebURLRequest.cpp
diff --git a/Source/platform/exported/WebURLRequest.cpp b/Source/platform/exported/WebURLRequest.cpp
index f74541315816c78cb0be49ab80c035cb613f5eae..a6a8466986278c7a9aed8c33ba85e67125df082e 100644
--- a/Source/platform/exported/WebURLRequest.cpp
+++ b/Source/platform/exported/WebURLRequest.cpp
@@ -238,6 +238,11 @@ WebReferrerPolicy WebURLRequest::referrerPolicy() const
return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrerPolicy());
}
+void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin)
+{
+ m_private->m_resourceRequest->addHTTPOriginIfNeeded(origin);
+}
+
bool WebURLRequest::hasUserGesture() const
{
return m_private->m_resourceRequest->hasUserGesture();
« no previous file with comments | « Source/core/page/CreateWindow.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698