| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 ~ChromeNetworkDelegate() override; | 75 ~ChromeNetworkDelegate() override; |
| 76 | 76 |
| 77 // Pass through to ChromeExtensionsNetworkDelegate::set_extension_info_map(). | 77 // Pass through to ChromeExtensionsNetworkDelegate::set_extension_info_map(). |
| 78 void set_extension_info_map(extensions::InfoMap* extension_info_map); | 78 void set_extension_info_map(extensions::InfoMap* extension_info_map); |
| 79 | 79 |
| 80 void set_url_blacklist_manager( | 80 void set_url_blacklist_manager( |
| 81 const policy::URLBlacklistManager* url_blacklist_manager) { | 81 const policy::URLBlacklistManager* url_blacklist_manager) { |
| 82 url_blacklist_manager_ = url_blacklist_manager; | 82 url_blacklist_manager_ = url_blacklist_manager; |
| 83 } | 83 } |
| 84 | 84 |
| 85 URLBlacklistState GetURLBlacklistState(const GURL& url) const final; |
| 86 |
| 85 // If |profile| is NULL or not set, events will be broadcast to all profiles, | 87 // If |profile| is NULL or not set, events will be broadcast to all profiles, |
| 86 // otherwise they will only be sent to the specified profile. | 88 // otherwise they will only be sent to the specified profile. |
| 87 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). | 89 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). |
| 88 void set_profile(void* profile); | 90 void set_profile(void* profile); |
| 89 | 91 |
| 90 // |profile_path| is used to locate the "Downloads" folder on Chrome OS. If it | 92 // |profile_path| is used to locate the "Downloads" folder on Chrome OS. If it |
| 91 // is set, the location of the Downloads folder for the profile is added to | 93 // is set, the location of the Downloads folder for the profile is added to |
| 92 // the whitelist for accesses via file: scheme. | 94 // the whitelist for accesses via file: scheme. |
| 93 void set_profile_path(const base::FilePath& profile_path) { | 95 void set_profile_path(const base::FilePath& profile_path) { |
| 94 profile_path_ = profile_path; | 96 profile_path_ = profile_path; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 224 |
| 223 // Aggregates and reports network usage. | 225 // Aggregates and reports network usage. |
| 224 data_usage::DataUseAggregator* data_use_aggregator_; | 226 data_usage::DataUseAggregator* data_use_aggregator_; |
| 225 // Controls whether network usage is reported as being off the record. | 227 // Controls whether network usage is reported as being off the record. |
| 226 bool is_data_usage_off_the_record_; | 228 bool is_data_usage_off_the_record_; |
| 227 | 229 |
| 228 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 230 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 229 }; | 231 }; |
| 230 | 232 |
| 231 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 233 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |