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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 const net::CookieList& cookie_list) override; | 171 const net::CookieList& cookie_list) override; |
172 bool OnCanSetCookie(const net::URLRequest& request, | 172 bool OnCanSetCookie(const net::URLRequest& request, |
173 const std::string& cookie_line, | 173 const std::string& cookie_line, |
174 net::CookieOptions* options) override; | 174 net::CookieOptions* options) override; |
175 bool OnCanAccessFile(const net::URLRequest& request, | 175 bool OnCanAccessFile(const net::URLRequest& request, |
176 const base::FilePath& path) const override; | 176 const base::FilePath& path) const override; |
177 bool OnCanEnablePrivacyMode( | 177 bool OnCanEnablePrivacyMode( |
178 const GURL& url, | 178 const GURL& url, |
179 const GURL& first_party_for_cookies) const override; | 179 const GURL& first_party_for_cookies) const override; |
180 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 180 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
181 bool OnAreStrictSecureCookiesEnabled() const override; | |
182 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 181 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
183 const net::URLRequest& request, | 182 const net::URLRequest& request, |
184 const GURL& target_url, | 183 const GURL& target_url, |
185 const GURL& referrer_url) const override; | 184 const GURL& referrer_url) const override; |
186 | 185 |
187 // Convenience function for reporting network usage to the | 186 // Convenience function for reporting network usage to the |
188 // |data_use_aggregator_|. | 187 // |data_use_aggregator_|. |
189 void ReportDataUsageStats(net::URLRequest* request, | 188 void ReportDataUsageStats(net::URLRequest* request, |
190 int64_t tx_bytes, | 189 int64_t tx_bytes, |
191 int64_t rx_bytes); | 190 int64_t rx_bytes); |
(...skipping 20 matching lines...) Expand all Loading... |
212 | 211 |
213 // Aggregates and reports network usage. | 212 // Aggregates and reports network usage. |
214 data_usage::DataUseAggregator* data_use_aggregator_; | 213 data_usage::DataUseAggregator* data_use_aggregator_; |
215 // Controls whether network usage is reported as being off the record. | 214 // Controls whether network usage is reported as being off the record. |
216 bool is_data_usage_off_the_record_; | 215 bool is_data_usage_off_the_record_; |
217 | 216 |
218 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 217 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
219 }; | 218 }; |
220 | 219 |
221 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 220 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |