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 #if defined(ENABLE_CONFIGURATION_POLICY) | |
Andrew T Wilson (Slow)
2016/05/02 09:32:11
We have deprecated ENABLE_CONFIGURATION_POLICY - p
| |
86 URLBlacklistState GetURLBlacklistState(const GURL& url) const final; | |
87 #endif | |
88 | |
85 // 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, |
86 // otherwise they will only be sent to the specified profile. | 90 // otherwise they will only be sent to the specified profile. |
87 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). | 91 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). |
88 void set_profile(void* profile); | 92 void set_profile(void* profile); |
89 | 93 |
90 // |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 |
91 // 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 |
92 // the whitelist for accesses via file: scheme. | 96 // the whitelist for accesses via file: scheme. |
93 void set_profile_path(const base::FilePath& profile_path) { | 97 void set_profile_path(const base::FilePath& profile_path) { |
94 profile_path_ = profile_path; | 98 profile_path_ = profile_path; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 | 226 |
223 // Aggregates and reports network usage. | 227 // Aggregates and reports network usage. |
224 data_usage::DataUseAggregator* data_use_aggregator_; | 228 data_usage::DataUseAggregator* data_use_aggregator_; |
225 // Controls whether network usage is reported as being off the record. | 229 // Controls whether network usage is reported as being off the record. |
226 bool is_data_usage_off_the_record_; | 230 bool is_data_usage_off_the_record_; |
227 | 231 |
228 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 232 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
229 }; | 233 }; |
230 | 234 |
231 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 235 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |