| 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/common/features.h" |
| 22 #include "components/ssl_config/ssl_config_service_manager.h" | 23 #include "components/ssl_config/ssl_config_service_manager.h" |
| 23 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
| 24 #include "content/public/browser/browser_thread_delegate.h" | 25 #include "content/public/browser/browser_thread_delegate.h" |
| 25 #include "net/base/network_change_notifier.h" | 26 #include "net/base/network_change_notifier.h" |
| 26 #include "net/http/http_network_session.h" | 27 #include "net/http/http_network_session.h" |
| 27 #include "net/socket/next_proto.h" | 28 #include "net/socket/next_proto.h" |
| 28 | 29 |
| 29 class PrefProxyConfigTracker; | 30 class PrefProxyConfigTracker; |
| 30 class PrefService; | 31 class PrefService; |
| 31 class PrefRegistrySimple; | 32 class PrefRegistrySimple; |
| 32 class SystemURLRequestContextGetter; | 33 class SystemURLRequestContextGetter; |
| 33 | 34 |
| 34 namespace base { | 35 namespace base { |
| 35 class CommandLine; | 36 class CommandLine; |
| 36 } | 37 } |
| 37 | 38 |
| 38 #if defined(OS_ANDROID) | 39 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 39 namespace chrome { | 40 namespace chrome { |
| 40 namespace android { | 41 namespace android { |
| 41 class ExternalDataUseObserver; | 42 class ExternalDataUseObserver; |
| 42 } | 43 } |
| 43 } | 44 } |
| 44 #endif // defined(OS_ANDROID) | 45 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
| 45 | 46 |
| 46 namespace chrome_browser_net { | 47 namespace chrome_browser_net { |
| 47 class DnsProbeService; | 48 class DnsProbeService; |
| 48 } | 49 } |
| 49 | 50 |
| 50 namespace data_usage { | 51 namespace data_usage { |
| 51 class DataUseAggregator; | 52 class DataUseAggregator; |
| 52 } | 53 } |
| 53 | 54 |
| 54 namespace extensions { | 55 namespace extensions { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 private: | 132 private: |
| 132 Globals* const globals_; | 133 Globals* const globals_; |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 Globals(); | 136 Globals(); |
| 136 ~Globals(); | 137 ~Globals(); |
| 137 | 138 |
| 138 // Global aggregator of data use. It must outlive the | 139 // Global aggregator of data use. It must outlive the |
| 139 // |system_network_delegate|. | 140 // |system_network_delegate|. |
| 140 scoped_ptr<data_usage::DataUseAggregator> data_use_aggregator; | 141 scoped_ptr<data_usage::DataUseAggregator> data_use_aggregator; |
| 141 #if defined(OS_ANDROID) | 142 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 142 // An external observer of data use. | 143 // An external observer of data use. |
| 143 scoped_ptr<chrome::android::ExternalDataUseObserver> | 144 scoped_ptr<chrome::android::ExternalDataUseObserver> |
| 144 external_data_use_observer; | 145 external_data_use_observer; |
| 145 #endif // defined(OS_ANDROID) | 146 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
| 146 // The "system" NetworkDelegate, used for Profile-agnostic network events. | 147 // The "system" NetworkDelegate, used for Profile-agnostic network events. |
| 147 scoped_ptr<net::NetworkDelegate> system_network_delegate; | 148 scoped_ptr<net::NetworkDelegate> system_network_delegate; |
| 148 scoped_ptr<net::HostResolver> host_resolver; | 149 scoped_ptr<net::HostResolver> host_resolver; |
| 149 scoped_ptr<net::CertVerifier> cert_verifier; | 150 scoped_ptr<net::CertVerifier> cert_verifier; |
| 150 // The ChannelIDService must outlive the HttpTransactionFactory. | 151 // The ChannelIDService must outlive the HttpTransactionFactory. |
| 151 scoped_ptr<net::ChannelIDService> system_channel_id_service; | 152 scoped_ptr<net::ChannelIDService> system_channel_id_service; |
| 152 // This TransportSecurityState doesn't load or save any state. It's only | 153 // This TransportSecurityState doesn't load or save any state. It's only |
| 153 // used to enforce pinning for system requests and will only use built-in | 154 // used to enforce pinning for system requests and will only use built-in |
| 154 // pins. | 155 // pins. |
| 155 scoped_ptr<net::TransportSecurityState> transport_security_state; | 156 scoped_ptr<net::TransportSecurityState> transport_security_state; |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 bool is_quic_allowed_by_policy_; | 559 bool is_quic_allowed_by_policy_; |
| 559 | 560 |
| 560 const base::TimeTicks creation_time_; | 561 const base::TimeTicks creation_time_; |
| 561 | 562 |
| 562 base::WeakPtrFactory<IOThread> weak_factory_; | 563 base::WeakPtrFactory<IOThread> weak_factory_; |
| 563 | 564 |
| 564 DISALLOW_COPY_AND_ASSIGN(IOThread); | 565 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 565 }; | 566 }; |
| 566 | 567 |
| 567 #endif // CHROME_BROWSER_IO_THREAD_H_ | 568 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |