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 <string> | 10 #include <string> |
(...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 #if defined(ENABLE_CONFIGURATION_POLICY) | 80 #if defined(ENABLE_CONFIGURATION_POLICY) |
81 void set_url_blacklist_manager( | 81 void set_url_blacklist_manager( |
82 const policy::URLBlacklistManager* url_blacklist_manager) { | 82 const policy::URLBlacklistManager* url_blacklist_manager) { |
83 url_blacklist_manager_ = url_blacklist_manager; | 83 url_blacklist_manager_ = url_blacklist_manager; |
84 } | 84 } |
| 85 |
| 86 URLBlacklistState GetURLBlacklistState(const GURL& url) const final; |
85 #endif | 87 #endif |
86 | 88 |
87 // If |profile| is NULL or not set, events will be broadcast to all profiles, | 89 // If |profile| is NULL or not set, events will be broadcast to all profiles, |
88 // otherwise they will only be sent to the specified profile. | 90 // otherwise they will only be sent to the specified profile. |
89 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). | 91 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). |
90 void set_profile(void* profile); | 92 void set_profile(void* profile); |
91 | 93 |
92 // |profile_path| is used to locate the "Downloads" folder on Chrome OS. If it | 94 // |profile_path| is used to locate the "Downloads" folder on Chrome OS. If it |
93 // is set, the location of the Downloads folder for the profile is added to | 95 // is set, the location of the Downloads folder for the profile is added to |
94 // the whitelist for accesses via file: scheme. | 96 // the whitelist for accesses via file: scheme. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 230 |
229 // Aggregates and reports network usage. | 231 // Aggregates and reports network usage. |
230 data_usage::DataUseAggregator* data_use_aggregator_; | 232 data_usage::DataUseAggregator* data_use_aggregator_; |
231 // Controls whether network usage is reported as being off the record. | 233 // Controls whether network usage is reported as being off the record. |
232 bool is_data_usage_off_the_record_; | 234 bool is_data_usage_off_the_record_; |
233 | 235 |
234 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 236 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
235 }; | 237 }; |
236 | 238 |
237 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 239 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |