OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 const net::CookieList& cookie_list) override; | 170 const net::CookieList& cookie_list) override; |
171 bool OnCanSetCookie(const net::URLRequest& request, | 171 bool OnCanSetCookie(const net::URLRequest& request, |
172 const std::string& cookie_line, | 172 const std::string& cookie_line, |
173 net::CookieOptions* options) override; | 173 net::CookieOptions* options) override; |
174 bool OnCanAccessFile(const net::URLRequest& request, | 174 bool OnCanAccessFile(const net::URLRequest& request, |
175 const base::FilePath& path) const override; | 175 const base::FilePath& path) const override; |
176 bool OnCanEnablePrivacyMode( | 176 bool OnCanEnablePrivacyMode( |
177 const GURL& url, | 177 const GURL& url, |
178 const GURL& first_party_for_cookies) const override; | 178 const GURL& first_party_for_cookies) const override; |
179 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 179 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
180 bool OnAreStrictSecureCookiesEnabled() const override; | |
181 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 180 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
182 const net::URLRequest& request, | 181 const net::URLRequest& request, |
183 const GURL& target_url, | 182 const GURL& target_url, |
184 const GURL& referrer_url) const override; | 183 const GURL& referrer_url) const override; |
185 | 184 |
186 // Convenience function for reporting network usage to the | 185 // Convenience function for reporting network usage to the |
187 // |data_use_aggregator_|. | 186 // |data_use_aggregator_|. |
188 void ReportDataUsageStats(net::URLRequest* request, | 187 void ReportDataUsageStats(net::URLRequest* request, |
189 int64_t tx_bytes, | 188 int64_t tx_bytes, |
190 int64_t rx_bytes); | 189 int64_t rx_bytes); |
(...skipping 23 matching lines...) Expand all Loading... |
214 | 213 |
215 // Aggregates and reports network usage. | 214 // Aggregates and reports network usage. |
216 data_usage::DataUseAggregator* data_use_aggregator_; | 215 data_usage::DataUseAggregator* data_use_aggregator_; |
217 // Controls whether network usage is reported as being off the record. | 216 // Controls whether network usage is reported as being off the record. |
218 bool is_data_usage_off_the_record_; | 217 bool is_data_usage_off_the_record_; |
219 | 218 |
220 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 219 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
221 }; | 220 }; |
222 | 221 |
223 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 222 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |