| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ | 5 #ifndef COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ |
| 6 #define COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ | 6 #define COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
| 16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "components/cronet/url_request_context_config.h" | 17 #include "components/cronet/url_request_context_config.h" |
| 18 #include "net/cert/cert_verifier.h" | 18 #include "net/cert/cert_verifier.h" |
| 19 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
| 20 #include "net/url_request/url_request_context.h" | 20 #include "net/url_request/url_request_context.h" |
| 21 #include "net/url_request/url_request_context_getter.h" | 21 #include "net/url_request/url_request_context_getter.h" |
| 22 | 22 |
| 23 class JsonPrefStore; | 23 class JsonPrefStore; |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class WaitableEvent; | 26 class WaitableEvent; |
| 27 } // namespace base | 27 } // namespace base |
| 28 | 28 |
| 29 namespace net { | 29 namespace net { |
| 30 class CookieStore; |
| 30 class HttpCache; | 31 class HttpCache; |
| 31 class NetworkChangeNotifier; | 32 class NetworkChangeNotifier; |
| 32 class NetLog; | 33 class NetLog; |
| 33 class ProxyConfigService; | 34 class ProxyConfigService; |
| 34 class WriteToFileNetLogObserver; | 35 class WriteToFileNetLogObserver; |
| 35 } // namespace net | 36 } // namespace net |
| 36 | 37 |
| 37 namespace cronet { | 38 namespace cronet { |
| 38 // CronetEnvironment contains all the network stack configuration | 39 // CronetEnvironment contains all the network stack configuration |
| 39 // and initialization. | 40 // and initialization. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 std::unique_ptr<base::Thread> network_io_thread_; | 133 std::unique_ptr<base::Thread> network_io_thread_; |
| 133 std::unique_ptr<base::Thread> network_cache_thread_; | 134 std::unique_ptr<base::Thread> network_cache_thread_; |
| 134 std::unique_ptr<base::Thread> file_thread_; | 135 std::unique_ptr<base::Thread> file_thread_; |
| 135 std::unique_ptr<base::Thread> file_user_blocking_thread_; | 136 std::unique_ptr<base::Thread> file_user_blocking_thread_; |
| 136 scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_; | 137 scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_; |
| 137 scoped_refptr<JsonPrefStore> net_pref_store_; | 138 scoped_refptr<JsonPrefStore> net_pref_store_; |
| 138 std::unique_ptr<net::CertVerifier> cert_verifier_; | 139 std::unique_ptr<net::CertVerifier> cert_verifier_; |
| 139 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; | 140 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; |
| 140 std::unique_ptr<net::HttpServerProperties> http_server_properties_; | 141 std::unique_ptr<net::HttpServerProperties> http_server_properties_; |
| 142 std::unique_ptr<net::CookieStore> cookie_store_; |
| 141 std::unique_ptr<net::URLRequestContext> main_context_; | 143 std::unique_ptr<net::URLRequestContext> main_context_; |
| 142 scoped_refptr<net::URLRequestContextGetter> main_context_getter_; | 144 scoped_refptr<net::URLRequestContextGetter> main_context_getter_; |
| 143 std::string user_agent_; | 145 std::string user_agent_; |
| 144 bool user_agent_partial_; | 146 bool user_agent_partial_; |
| 145 std::unique_ptr<net::NetLog> net_log_; | 147 std::unique_ptr<net::NetLog> net_log_; |
| 146 std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_; | 148 std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_; |
| 147 | 149 |
| 148 DISALLOW_COPY_AND_ASSIGN(CronetEnvironment); | 150 DISALLOW_COPY_AND_ASSIGN(CronetEnvironment); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 } // namespace cronet | 153 } // namespace cronet |
| 152 | 154 |
| 153 #endif // COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ | 155 #endif // COMPONENTS_CRONET_IOS_CRONET_ENVIRONMENT_H_ |
| OLD | NEW |