Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index d73d2fec6a34b05861710e347ab248404af8bb18..fa049d65c311896bbc6d84ee74e9040b8a7101f4 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -291,6 +291,14 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe), |
// will not have any more of its methods called. |
virtual ~URLRequest(); |
+ // Changes the default cookie policy from allowing all cookies to denying all |
wtc
2012/03/28 17:51:05
Nit: denying => blocking ?
which is a little more
jochen (gone - plz use gerrit)
2012/03/29 18:33:24
Done.
|
+ // cookies. Embedders that want to implement a more flexible policy should |
+ // change the default to blocking all cookies, and provide a NetworkDelegate |
+ // with the URLRequestContext that maintains the CookieStore. |
+ // The cookie policy default has to be set before the first URLRequest is |
+ // started. Once it was set to deny all cookies, it cannot be changed back. |
+ static void SetDefaultCookiePolicyToBlock(); |
+ |
// Returns true if the scheme can be handled by URLRequest. False otherwise. |
static bool IsHandledProtocol(const std::string& scheme); |