| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ | 5 #ifndef CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ |
| 6 #define CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ | 6 #define CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
| 9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
| 10 #include "net/http/http_network_session.h" | 10 #include "net/http/http_network_session.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // The URLRequestContextStorage class is not used as owner to these objects | 95 // The URLRequestContextStorage class is not used as owner to these objects |
| 96 // since they are shared between the different URLRequestContexts. | 96 // since they are shared between the different URLRequestContexts. |
| 97 // The URLRequestContextStorage class manages dependent resources for a single | 97 // The URLRequestContextStorage class manages dependent resources for a single |
| 98 // instance of URLRequestContext only. | 98 // instance of URLRequestContext only. |
| 99 bool system_dependencies_initialized_; | 99 bool system_dependencies_initialized_; |
| 100 std::unique_ptr<net::HostResolver> host_resolver_; | 100 std::unique_ptr<net::HostResolver> host_resolver_; |
| 101 std::unique_ptr<net::ChannelIDService> channel_id_service_; | 101 std::unique_ptr<net::ChannelIDService> channel_id_service_; |
| 102 std::unique_ptr<net::CertVerifier> cert_verifier_; | 102 std::unique_ptr<net::CertVerifier> cert_verifier_; |
| 103 scoped_refptr<net::SSLConfigService> ssl_config_service_; | 103 scoped_refptr<net::SSLConfigService> ssl_config_service_; |
| 104 std::unique_ptr<net::TransportSecurityState> transport_security_state_; | 104 std::unique_ptr<net::TransportSecurityState> transport_security_state_; |
| 105 std::unique_ptr<net::CTVerifier> cert_transparency_verifier_; |
| 106 std::unique_ptr<net::CTPolicyEnforcer> ct_policy_enforcer_; |
| 105 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; | 107 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; |
| 106 std::unique_ptr<net::ProxyService> proxy_service_; | 108 std::unique_ptr<net::ProxyService> proxy_service_; |
| 107 std::unique_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_; | 109 std::unique_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_; |
| 108 std::unique_ptr<net::HttpServerProperties> http_server_properties_; | 110 std::unique_ptr<net::HttpServerProperties> http_server_properties_; |
| 109 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; | 111 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; |
| 110 std::unique_ptr<net::HttpTransactionFactory> system_transaction_factory_; | 112 std::unique_ptr<net::HttpTransactionFactory> system_transaction_factory_; |
| 111 std::unique_ptr<net::CookieStore> system_cookie_store_; | 113 std::unique_ptr<net::CookieStore> system_cookie_store_; |
| 112 std::unique_ptr<net::URLRequestJobFactory> system_job_factory_; | 114 std::unique_ptr<net::URLRequestJobFactory> system_job_factory_; |
| 113 | 115 |
| 114 bool main_dependencies_initialized_; | 116 bool main_dependencies_initialized_; |
| 115 std::unique_ptr<net::HttpTransactionFactory> main_transaction_factory_; | 117 std::unique_ptr<net::HttpTransactionFactory> main_transaction_factory_; |
| 116 std::unique_ptr<net::CookieStore> main_cookie_store_; | 118 std::unique_ptr<net::CookieStore> main_cookie_store_; |
| 117 std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; | 119 std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; |
| 118 | 120 |
| 119 bool media_dependencies_initialized_; | 121 bool media_dependencies_initialized_; |
| 120 std::unique_ptr<net::HttpTransactionFactory> media_transaction_factory_; | 122 std::unique_ptr<net::HttpTransactionFactory> media_transaction_factory_; |
| 121 | 123 |
| 122 net::NetLog* net_log_; | 124 net::NetLog* net_log_; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace shell | 127 } // namespace shell |
| 126 } // namespace chromecast | 128 } // namespace chromecast |
| 127 | 129 |
| 128 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ | 130 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ |
| OLD | NEW |