Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 106 |
| 107 void set_enable_do_not_track(BooleanPrefMember* enable_do_not_track) { | 107 void set_enable_do_not_track(BooleanPrefMember* enable_do_not_track) { |
| 108 enable_do_not_track_ = enable_do_not_track; | 108 enable_do_not_track_ = enable_do_not_track; |
| 109 } | 109 } |
| 110 | 110 |
| 111 void set_force_google_safe_search( | 111 void set_force_google_safe_search( |
| 112 BooleanPrefMember* force_google_safe_search) { | 112 BooleanPrefMember* force_google_safe_search) { |
| 113 force_google_safe_search_ = force_google_safe_search; | 113 force_google_safe_search_ = force_google_safe_search; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void set_spdy_proxy_auth_enabled( | |
|
bengr
2014/07/12 00:11:59
call this set_data_reduction_proxy_enabled(). In t
megjablon
2014/07/14 19:06:41
Done.
| |
| 117 BooleanPrefMember* spdy_proxy_auth_enabled) { | |
| 118 spdy_proxy_auth_enabled_ = spdy_proxy_auth_enabled; | |
| 119 } | |
| 120 | |
| 116 void set_domain_reliability_monitor( | 121 void set_domain_reliability_monitor( |
| 117 domain_reliability::DomainReliabilityMonitor* monitor) { | 122 domain_reliability::DomainReliabilityMonitor* monitor) { |
| 118 domain_reliability_monitor_ = monitor; | 123 domain_reliability_monitor_ = monitor; |
| 119 } | 124 } |
| 120 | 125 |
| 121 void set_prerender_tracker(prerender::PrerenderTracker* prerender_tracker) { | 126 void set_prerender_tracker(prerender::PrerenderTracker* prerender_tracker) { |
| 122 prerender_tracker_ = prerender_tracker; | 127 prerender_tracker_ = prerender_tracker; |
| 123 } | 128 } |
| 124 | 129 |
| 125 // |data_reduction_proxy_params_| must outlive this ChromeNetworkDelegate. | 130 // |data_reduction_proxy_params_| must outlive this ChromeNetworkDelegate. |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 149 // instances of this object. | 154 // instances of this object. |
| 150 static void NeverThrottleRequests(); | 155 static void NeverThrottleRequests(); |
| 151 | 156 |
| 152 // Binds the pref members to |pref_service| and moves them to the IO thread. | 157 // Binds the pref members to |pref_service| and moves them to the IO thread. |
| 153 // |enable_referrers| cannot be NULL, the others can. | 158 // |enable_referrers| cannot be NULL, the others can. |
| 154 // This method should be called on the UI thread. | 159 // This method should be called on the UI thread. |
| 155 static void InitializePrefsOnUIThread( | 160 static void InitializePrefsOnUIThread( |
| 156 BooleanPrefMember* enable_referrers, | 161 BooleanPrefMember* enable_referrers, |
| 157 BooleanPrefMember* enable_do_not_track, | 162 BooleanPrefMember* enable_do_not_track, |
| 158 BooleanPrefMember* force_google_safe_search, | 163 BooleanPrefMember* force_google_safe_search, |
| 164 BooleanPrefMember* spdy_proxy_auth_enabled, | |
| 159 PrefService* pref_service); | 165 PrefService* pref_service); |
| 160 | 166 |
| 161 // When called, all file:// URLs will now be accessible. If this is not | 167 // When called, all file:// URLs will now be accessible. If this is not |
| 162 // called, then some platforms restrict access to file:// paths. | 168 // called, then some platforms restrict access to file:// paths. |
| 163 static void AllowAccessToAllFiles(); | 169 static void AllowAccessToAllFiles(); |
| 164 | 170 |
| 165 // Creates a Value summary of the persistent state of the network session. | 171 // Creates a Value summary of the persistent state of the network session. |
| 166 // The caller is responsible for deleting the returned value. | 172 // The caller is responsible for deleting the returned value. |
| 167 // Must be called on the UI thread. | 173 // Must be called on the UI thread. |
| 168 static base::Value* HistoricNetworkStatsInfoToValue(); | 174 static base::Value* HistoricNetworkStatsInfoToValue(); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 void* profile_; | 239 void* profile_; |
| 234 base::FilePath profile_path_; | 240 base::FilePath profile_path_; |
| 235 scoped_refptr<CookieSettings> cookie_settings_; | 241 scoped_refptr<CookieSettings> cookie_settings_; |
| 236 | 242 |
| 237 scoped_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_; | 243 scoped_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_; |
| 238 | 244 |
| 239 // Weak, owned by our owner. | 245 // Weak, owned by our owner. |
| 240 BooleanPrefMember* enable_referrers_; | 246 BooleanPrefMember* enable_referrers_; |
| 241 BooleanPrefMember* enable_do_not_track_; | 247 BooleanPrefMember* enable_do_not_track_; |
| 242 BooleanPrefMember* force_google_safe_search_; | 248 BooleanPrefMember* force_google_safe_search_; |
| 249 BooleanPrefMember* spdy_proxy_auth_enabled_; | |
| 243 | 250 |
| 244 // Weak, owned by our owner. | 251 // Weak, owned by our owner. |
| 245 #if defined(ENABLE_CONFIGURATION_POLICY) | 252 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 246 const policy::URLBlacklistManager* url_blacklist_manager_; | 253 const policy::URLBlacklistManager* url_blacklist_manager_; |
| 247 #endif | 254 #endif |
| 248 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; | 255 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; |
| 249 | 256 |
| 250 // When true, allow access to all file:// URLs. | 257 // When true, allow access to all file:// URLs. |
| 251 static bool g_allow_file_access_; | 258 static bool g_allow_file_access_; |
| 252 | 259 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 277 // ChromeNetworkDelegate. | 284 // ChromeNetworkDelegate. |
| 278 data_reduction_proxy::DataReductionProxyUsageStats* | 285 data_reduction_proxy::DataReductionProxyUsageStats* |
| 279 data_reduction_proxy_usage_stats_; | 286 data_reduction_proxy_usage_stats_; |
| 280 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 287 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
| 281 data_reduction_proxy_auth_request_handler_; | 288 data_reduction_proxy_auth_request_handler_; |
| 282 | 289 |
| 283 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 290 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 284 }; | 291 }; |
| 285 | 292 |
| 286 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 293 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |