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

Unified Diff: public/platform/WebURLRequest.h

Issue 1071893003: WebURLRequest: Track the requesting document's URL through navigations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 5 years, 7 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/ResourceRequestTest.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 aa692f9da6f2a9cd35c9623247186ea501c44527..86a7b1fe84acf49e1e1a49bb2fc2893e78ce1645 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -40,6 +40,7 @@ namespace blink {
class ResourceRequest;
class WebHTTPBody;
class WebHTTPHeaderVisitor;
+class WebSecurityOrigin;
class WebString;
class WebURL;
class WebURLRequestPrivate;
@@ -165,6 +166,11 @@ public:
BLINK_PLATFORM_EXPORT WebURL firstPartyForCookies() const;
BLINK_PLATFORM_EXPORT void setFirstPartyForCookies(const WebURL&);
+ // The origin of the execution context which originated the request. Used to
+ // implement First-Party-Only cookie restrictions.
+ BLINK_PLATFORM_EXPORT WebSecurityOrigin requestorOrigin() const;
+ BLINK_PLATFORM_EXPORT void setRequestorOrigin(const WebSecurityOrigin&);
+
// Controls whether user name, password, and cookies may be sent with the
// request. (If false, this overrides allowCookies.)
BLINK_PLATFORM_EXPORT bool allowStoredCredentials() const;
« no previous file with comments | « Source/platform/network/ResourceRequestTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698