OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "net/base/completion_callback.h" | 11 #include "net/base/completion_callback.h" |
12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
13 #include "net/base/network_delegate.h" | 13 #include "net/base/network_delegate.h" |
14 #include "net/cookies/canonical_cookie.h" | 14 #include "net/cookies/canonical_cookie.h" |
15 #include "net/proxy/proxy_retry_info.h" | 15 #include "net/proxy/proxy_retry_info.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class FilePath; | 20 class FilePath; |
21 } | 21 } |
22 | 22 |
| 23 namespace url { |
| 24 class Origin; |
| 25 } |
| 26 |
23 namespace net { | 27 namespace net { |
24 | 28 |
25 class CookieOptions; | 29 class CookieOptions; |
26 class HttpRequestHeaders; | 30 class HttpRequestHeaders; |
27 class HttpResponseHeaders; | 31 class HttpResponseHeaders; |
28 class ProxyInfo; | 32 class ProxyInfo; |
29 class URLRequest; | 33 class URLRequest; |
30 | 34 |
31 class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate { | 35 class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate { |
32 public: | 36 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool OnCanEnablePrivacyMode( | 95 bool OnCanEnablePrivacyMode( |
92 const GURL& url, | 96 const GURL& url, |
93 const GURL& first_party_for_cookies) const override; | 97 const GURL& first_party_for_cookies) const override; |
94 | 98 |
95 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 99 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
96 | 100 |
97 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 101 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
98 const URLRequest& request, | 102 const URLRequest& request, |
99 const GURL& target_url, | 103 const GURL& target_url, |
100 const GURL& referrer_url) const override; | 104 const GURL& referrer_url) const override; |
| 105 |
| 106 bool OnCanQueueReportingReport(const url::Origin& origin) const override; |
| 107 |
| 108 bool OnCanSendReportingReport(const url::Origin& origin) const override; |
| 109 |
| 110 bool OnCanSetReportingClient(const url::Origin& origin, |
| 111 const GURL& endpoint) const override; |
| 112 |
| 113 bool OnCanUseReportingClient(const url::Origin& origin, |
| 114 const GURL& endpoint) const override; |
101 }; | 115 }; |
102 | 116 |
103 } // namespace net | 117 } // namespace net |
104 | 118 |
105 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 119 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
OLD | NEW |