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

Unified Diff: public/platform/WebURLRequest.h

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/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebURLRequest.h
diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h
index 7d9e4dcda03fa69796189c4431bfee4229f30c29..0e65e80f99750704d611416bdc763a0dd5cb4178 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -159,6 +159,10 @@ public:
BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const;
+ // Adds an HTTP origin header if it is empty and the HTTP method of the
+ // request requires it.
+ BLINK_PLATFORM_EXPORT void addHTTPOriginIfNeeded(const WebString& origin);
+
// True if the request was user initiated.
BLINK_PLATFORM_EXPORT bool hasUserGesture() const;
BLINK_PLATFORM_EXPORT void setHasUserGesture(bool);
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698