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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/prefs/pref_member.h" | 18 #include "base/prefs/pref_member.h" |
19 #include "base/strings/string_piece.h" | 19 #include "base/strings/string_piece.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "chrome/browser/net/chrome_network_delegate.h" | 21 #include "chrome/browser/net/chrome_network_delegate.h" |
22 #include "chrome/browser/net/ssl_config_service_manager.h" | 22 #include "components/ssl_config/ssl_config_service_manager.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/browser_thread_delegate.h" | 24 #include "content/public/browser/browser_thread_delegate.h" |
25 #include "net/base/network_change_notifier.h" | 25 #include "net/base/network_change_notifier.h" |
26 #include "net/http/http_network_session.h" | 26 #include "net/http/http_network_session.h" |
27 #include "net/socket/next_proto.h" | 27 #include "net/socket/next_proto.h" |
28 | 28 |
29 class PrefProxyConfigTracker; | 29 class PrefProxyConfigTracker; |
30 class PrefService; | 30 class PrefService; |
31 class PrefRegistrySimple; | 31 class PrefRegistrySimple; |
32 class SystemURLRequestContextGetter; | 32 class SystemURLRequestContextGetter; |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 std::string auth_schemes_; | 482 std::string auth_schemes_; |
483 bool negotiate_disable_cname_lookup_; | 483 bool negotiate_disable_cname_lookup_; |
484 bool negotiate_enable_port_; | 484 bool negotiate_enable_port_; |
485 std::string auth_server_whitelist_; | 485 std::string auth_server_whitelist_; |
486 std::string auth_delegate_whitelist_; | 486 std::string auth_delegate_whitelist_; |
487 std::string gssapi_library_name_; | 487 std::string gssapi_library_name_; |
488 std::string auth_android_negotiate_account_type_; | 488 std::string auth_android_negotiate_account_type_; |
489 | 489 |
490 // This is an instance of the default SSLConfigServiceManager for the current | 490 // This is an instance of the default SSLConfigServiceManager for the current |
491 // platform and it gets SSL preferences from local_state object. | 491 // platform and it gets SSL preferences from local_state object. |
492 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 492 scoped_ptr<ssl_config::SSLConfigServiceManager> ssl_config_service_manager_; |
493 | 493 |
494 // These member variables are initialized by a task posted to the IO thread, | 494 // These member variables are initialized by a task posted to the IO thread, |
495 // which gets posted by calling certain member functions of IOThread. | 495 // which gets posted by calling certain member functions of IOThread. |
496 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; | 496 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; |
497 | 497 |
498 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 498 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
499 | 499 |
500 scoped_refptr<net::URLRequestContextGetter> | 500 scoped_refptr<net::URLRequestContextGetter> |
501 system_url_request_context_getter_; | 501 system_url_request_context_getter_; |
502 | 502 |
503 // True if SPDY is disabled by policy. | 503 // True if SPDY is disabled by policy. |
504 bool is_spdy_disabled_by_policy_; | 504 bool is_spdy_disabled_by_policy_; |
505 | 505 |
506 // True if QUIC is allowed by policy. | 506 // True if QUIC is allowed by policy. |
507 bool is_quic_allowed_by_policy_; | 507 bool is_quic_allowed_by_policy_; |
508 | 508 |
509 const base::TimeTicks creation_time_; | 509 const base::TimeTicks creation_time_; |
510 | 510 |
511 base::WeakPtrFactory<IOThread> weak_factory_; | 511 base::WeakPtrFactory<IOThread> weak_factory_; |
512 | 512 |
513 DISALLOW_COPY_AND_ASSIGN(IOThread); | 513 DISALLOW_COPY_AND_ASSIGN(IOThread); |
514 }; | 514 }; |
515 | 515 |
516 #endif // CHROME_BROWSER_IO_THREAD_H_ | 516 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |