summaryrefslogtreecommitdiffstats
path: root/net/base/network_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/network_delegate.h')
-rw-r--r--net/base/network_delegate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 0d99d02..9c2913d 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -97,6 +97,8 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
bool CanAccessFile(const URLRequest& request,
const base::FilePath& path) const;
bool CanThrottleRequest(const URLRequest& request) const;
+ bool CanEnablePrivacyMode(const GURL& url,
+ const GURL& first_party_for_cookies) const;
int NotifyBeforeSocketStreamConnect(SocketStream* socket,
const CompletionCallback& callback);
@@ -225,6 +227,13 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
// request is overloaded or down.
virtual bool OnCanThrottleRequest(const URLRequest& request) const = 0;
+ // Returns true if the given |url| has to be requested over connection that
+ // is not tracked by the server. Usually is false, unless user privacy
+ // settings block cookies from being get or set.
+ virtual bool OnCanEnablePrivacyMode(
+ const GURL& url,
+ const GURL& first_party_for_cookies) const;
+
// Called before a SocketStream tries to connect.
virtual int OnBeforeSocketStreamConnect(
SocketStream* socket, const CompletionCallback& callback) = 0;