| 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_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
| 6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 // Returns the callback for updating data use prefs. | 232 // Returns the callback for updating data use prefs. |
| 233 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder(); | 233 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder(); |
| 234 | 234 |
| 235 // Registers the |observer| for new STH notifications. | 235 // Registers the |observer| for new STH notifications. |
| 236 void RegisterSTHObserver(net::ct::STHObserver* observer); | 236 void RegisterSTHObserver(net::ct::STHObserver* observer); |
| 237 | 237 |
| 238 // Un-registers the |observer|. | 238 // Un-registers the |observer|. |
| 239 void UnregisterSTHObserver(net::ct::STHObserver* observer); | 239 void UnregisterSTHObserver(net::ct::STHObserver* observer); |
| 240 | 240 |
| 241 // Returns true if the indicated proxy resolution features are |
| 242 // enabled. These features are controlled through |
| 243 // preferences/policy/commandline. |
| 244 // |
| 245 // For a description of what these features are, and how they are |
| 246 // configured, see the comments in pref_names.cc for |
| 247 // |kQuickCheckEnabled| and |kPacHttpsUrlStrippingEnabled |
| 248 // respectively. |
| 249 bool WpadQuickCheckEnabled() const; |
| 250 bool PacHttpsUrlStrippingEnabled() const; |
| 251 |
| 241 private: | 252 private: |
| 242 // Provide SystemURLRequestContextGetter with access to | 253 // Provide SystemURLRequestContextGetter with access to |
| 243 // InitSystemRequestContext(). | 254 // InitSystemRequestContext(). |
| 244 friend class SystemURLRequestContextGetter; | 255 friend class SystemURLRequestContextGetter; |
| 245 | 256 |
| 246 friend class test::IOThreadPeer; | 257 friend class test::IOThreadPeer; |
| 247 | 258 |
| 248 // BrowserThreadDelegate implementation, runs on the IO thread. | 259 // BrowserThreadDelegate implementation, runs on the IO thread. |
| 249 // This handles initialization and destruction of state that must | 260 // This handles initialization and destruction of state that must |
| 250 // live on the IO thread. | 261 // live on the IO thread. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_; | 332 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_; |
| 322 | 333 |
| 323 std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_; | 334 std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_; |
| 324 | 335 |
| 325 BooleanPrefMember system_enable_referrers_; | 336 BooleanPrefMember system_enable_referrers_; |
| 326 | 337 |
| 327 BooleanPrefMember dns_client_enabled_; | 338 BooleanPrefMember dns_client_enabled_; |
| 328 | 339 |
| 329 BooleanPrefMember quick_check_enabled_; | 340 BooleanPrefMember quick_check_enabled_; |
| 330 | 341 |
| 342 BooleanPrefMember pac_https_url_stripping_enabled_; |
| 343 |
| 331 // Store HTTP Auth-related policies in this thread. | 344 // Store HTTP Auth-related policies in this thread. |
| 332 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the | 345 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the |
| 333 // policy can change after startup (https://crbug/549273). | 346 // policy can change after startup (https://crbug/549273). |
| 334 std::string auth_schemes_; | 347 std::string auth_schemes_; |
| 335 BooleanPrefMember negotiate_disable_cname_lookup_; | 348 BooleanPrefMember negotiate_disable_cname_lookup_; |
| 336 BooleanPrefMember negotiate_enable_port_; | 349 BooleanPrefMember negotiate_enable_port_; |
| 337 StringPrefMember auth_server_whitelist_; | 350 StringPrefMember auth_server_whitelist_; |
| 338 StringPrefMember auth_delegate_whitelist_; | 351 StringPrefMember auth_delegate_whitelist_; |
| 339 | 352 |
| 340 #if defined(OS_ANDROID) | 353 #if defined(OS_ANDROID) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 // Callback for updating data use prefs which needs to be initialized on UI | 385 // Callback for updating data use prefs which needs to be initialized on UI |
| 373 // thread and passed to |ChromeNetworkDelegate|. | 386 // thread and passed to |ChromeNetworkDelegate|. |
| 374 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 387 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
| 375 | 388 |
| 376 base::WeakPtrFactory<IOThread> weak_factory_; | 389 base::WeakPtrFactory<IOThread> weak_factory_; |
| 377 | 390 |
| 378 DISALLOW_COPY_AND_ASSIGN(IOThread); | 391 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 379 }; | 392 }; |
| 380 | 393 |
| 381 #endif // CHROME_BROWSER_IO_THREAD_H_ | 394 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |