| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // |enable_referrers| (and all of the other optional PrefMembers) should be | 67 // |enable_referrers| (and all of the other optional PrefMembers) should be |
| 68 // initialized on the UI thread (see below) beforehand. This object's owner is | 68 // initialized on the UI thread (see below) beforehand. This object's owner is |
| 69 // responsible for cleaning them up at shutdown. | 69 // responsible for cleaning them up at shutdown. |
| 70 ChromeNetworkDelegate(extensions::EventRouterForwarder* event_router, | 70 ChromeNetworkDelegate(extensions::EventRouterForwarder* event_router, |
| 71 BooleanPrefMember* enable_referrers); | 71 BooleanPrefMember* enable_referrers); |
| 72 ~ChromeNetworkDelegate() override; | 72 ~ChromeNetworkDelegate() override; |
| 73 | 73 |
| 74 // Pass through to ChromeExtensionsNetworkDelegate::set_extension_info_map(). | 74 // Pass through to ChromeExtensionsNetworkDelegate::set_extension_info_map(). |
| 75 void set_extension_info_map(extensions::InfoMap* extension_info_map); | 75 void set_extension_info_map(extensions::InfoMap* extension_info_map); |
| 76 | 76 |
| 77 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 78 void set_url_blacklist_manager( | 77 void set_url_blacklist_manager( |
| 79 const policy::URLBlacklistManager* url_blacklist_manager) { | 78 const policy::URLBlacklistManager* url_blacklist_manager) { |
| 80 url_blacklist_manager_ = url_blacklist_manager; | 79 url_blacklist_manager_ = url_blacklist_manager; |
| 81 } | 80 } |
| 82 #endif | |
| 83 | 81 |
| 84 // If |profile| is NULL or not set, events will be broadcast to all profiles, | 82 // If |profile| is NULL or not set, events will be broadcast to all profiles, |
| 85 // otherwise they will only be sent to the specified profile. | 83 // otherwise they will only be sent to the specified profile. |
| 86 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). | 84 // Also pass through to ChromeExtensionsNetworkDelegate::set_profile(). |
| 87 void set_profile(void* profile); | 85 void set_profile(void* profile); |
| 88 | 86 |
| 89 // |profile_path| is used to locate the "Downloads" folder on Chrome OS. If it | 87 // |profile_path| is used to locate the "Downloads" folder on Chrome OS. If it |
| 90 // is set, the location of the Downloads folder for the profile is added to | 88 // is set, the location of the Downloads folder for the profile is added to |
| 91 // the whitelist for accesses via file: scheme. | 89 // the whitelist for accesses via file: scheme. |
| 92 void set_profile_path(const base::FilePath& profile_path) { | 90 void set_profile_path(const base::FilePath& profile_path) { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 199 |
| 202 scoped_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_; | 200 scoped_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_; |
| 203 | 201 |
| 204 // Weak, owned by our owner. | 202 // Weak, owned by our owner. |
| 205 BooleanPrefMember* enable_referrers_; | 203 BooleanPrefMember* enable_referrers_; |
| 206 BooleanPrefMember* enable_do_not_track_; | 204 BooleanPrefMember* enable_do_not_track_; |
| 207 BooleanPrefMember* force_google_safe_search_; | 205 BooleanPrefMember* force_google_safe_search_; |
| 208 BooleanPrefMember* force_youtube_safety_mode_; | 206 BooleanPrefMember* force_youtube_safety_mode_; |
| 209 | 207 |
| 210 // Weak, owned by our owner. | 208 // Weak, owned by our owner. |
| 211 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 212 const policy::URLBlacklistManager* url_blacklist_manager_; | 209 const policy::URLBlacklistManager* url_blacklist_manager_; |
| 213 #endif | |
| 214 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; | 210 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; |
| 215 | 211 |
| 216 // When true, allow access to all file:// URLs. | 212 // When true, allow access to all file:// URLs. |
| 217 static bool g_allow_file_access_; | 213 static bool g_allow_file_access_; |
| 218 | 214 |
| 219 // Component to measure data use. | 215 // Component to measure data use. |
| 220 data_use_measurement::DataUseMeasurement data_use_measurement_; | 216 data_use_measurement::DataUseMeasurement data_use_measurement_; |
| 221 | 217 |
| 222 bool experimental_web_platform_features_enabled_; | 218 bool experimental_web_platform_features_enabled_; |
| 223 | 219 |
| 224 // Aggregates and reports network usage. | 220 // Aggregates and reports network usage. |
| 225 data_usage::DataUseAggregator* data_use_aggregator_; | 221 data_usage::DataUseAggregator* data_use_aggregator_; |
| 226 // Controls whether network usage is reported as being off the record. | 222 // Controls whether network usage is reported as being off the record. |
| 227 bool is_data_usage_off_the_record_; | 223 bool is_data_usage_off_the_record_; |
| 228 | 224 |
| 229 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 225 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 230 }; | 226 }; |
| 231 | 227 |
| 232 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 228 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |