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_LAYERED_NETWORK_DELEGATE_H_ | 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 bool OnCanAccessFile(const URLRequest& request, | 80 bool OnCanAccessFile(const URLRequest& request, |
81 const base::FilePath& path) const final; | 81 const base::FilePath& path) const final; |
82 bool OnCanEnablePrivacyMode(const GURL& url, | 82 bool OnCanEnablePrivacyMode(const GURL& url, |
83 const GURL& first_party_for_cookies) const final; | 83 const GURL& first_party_for_cookies) const final; |
84 bool OnAreExperimentalCookieFeaturesEnabled() const final; | 84 bool OnAreExperimentalCookieFeaturesEnabled() const final; |
85 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 85 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
86 const URLRequest& request, | 86 const URLRequest& request, |
87 const GURL& target_url, | 87 const GURL& target_url, |
88 const GURL& referrer_url) const final; | 88 const GURL& referrer_url) const final; |
89 | 89 |
| 90 bool OnCanQueueReportingReport(const url::Origin& origin) const final; |
| 91 |
| 92 bool OnCanSendReportingReport(const url::Origin& origin) const final; |
| 93 |
| 94 bool OnCanSetReportingClient(const url::Origin& origin, |
| 95 const GURL& endpoint) const final; |
| 96 |
| 97 bool OnCanUseReportingClient(const url::Origin& origin, |
| 98 const GURL& endpoint) const final; |
| 99 |
90 protected: | 100 protected: |
91 virtual void OnBeforeURLRequestInternal(URLRequest* request, | 101 virtual void OnBeforeURLRequestInternal(URLRequest* request, |
92 const CompletionCallback& callback, | 102 const CompletionCallback& callback, |
93 GURL* new_url); | 103 GURL* new_url); |
94 | 104 |
95 virtual void OnBeforeStartTransactionInternal( | 105 virtual void OnBeforeStartTransactionInternal( |
96 URLRequest* request, | 106 URLRequest* request, |
97 const CompletionCallback& callback, | 107 const CompletionCallback& callback, |
98 HttpRequestHeaders* headers); | 108 HttpRequestHeaders* headers); |
99 | 109 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 const GURL& url, | 160 const GURL& url, |
151 const GURL& first_party_for_cookies) const; | 161 const GURL& first_party_for_cookies) const; |
152 | 162 |
153 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; | 163 virtual void OnAreExperimentalCookieFeaturesEnabledInternal() const; |
154 | 164 |
155 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 165 virtual void OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
156 const URLRequest& request, | 166 const URLRequest& request, |
157 const GURL& target_url, | 167 const GURL& target_url, |
158 const GURL& referrer_url) const; | 168 const GURL& referrer_url) const; |
159 | 169 |
| 170 virtual void OnCanQueueReportingReportInternal( |
| 171 const url::Origin& origin) const; |
| 172 |
| 173 virtual void OnCanSendReportingReportInternal( |
| 174 const url::Origin& origin) const; |
| 175 |
| 176 virtual void OnCanSetReportingClientInternal(const url::Origin& origin, |
| 177 const GURL& endpoint) const; |
| 178 |
| 179 virtual void OnCanUseReportingClientInternal(const url::Origin& origin, |
| 180 const GURL& endpoint) const; |
| 181 |
160 private: | 182 private: |
161 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 183 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
162 }; | 184 }; |
163 | 185 |
164 } // namespace net | 186 } // namespace net |
165 | 187 |
166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 188 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
OLD | NEW |