Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: chromecast/browser/url_request_context_factory.h

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 net::URLRequestContext* CreateSystemRequestContext(); 81 net::URLRequestContext* CreateSystemRequestContext();
82 net::URLRequestContext* CreateMediaRequestContext(); 82 net::URLRequestContext* CreateMediaRequestContext();
83 net::URLRequestContext* CreateMainRequestContext( 83 net::URLRequestContext* CreateMainRequestContext(
84 content::BrowserContext* browser_context, 84 content::BrowserContext* browser_context,
85 content::ProtocolHandlerMap* protocol_handlers, 85 content::ProtocolHandlerMap* protocol_handlers,
86 content::URLRequestInterceptorScopedVector request_interceptors); 86 content::URLRequestInterceptorScopedVector request_interceptors);
87 87
88 scoped_refptr<net::URLRequestContextGetter> system_getter_; 88 scoped_refptr<net::URLRequestContextGetter> system_getter_;
89 scoped_refptr<net::URLRequestContextGetter> media_getter_; 89 scoped_refptr<net::URLRequestContextGetter> media_getter_;
90 scoped_refptr<net::URLRequestContextGetter> main_getter_; 90 scoped_refptr<net::URLRequestContextGetter> main_getter_;
91 scoped_ptr<CastNetworkDelegate> app_network_delegate_; 91 std::unique_ptr<CastNetworkDelegate> app_network_delegate_;
92 scoped_ptr<CastNetworkDelegate> system_network_delegate_; 92 std::unique_ptr<CastNetworkDelegate> system_network_delegate_;
93 93
94 // Shared objects for all contexts. 94 // Shared objects for all contexts.
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 scoped_ptr<net::HostResolver> host_resolver_; 100 std::unique_ptr<net::HostResolver> host_resolver_;
101 scoped_ptr<net::ChannelIDService> channel_id_service_; 101 std::unique_ptr<net::ChannelIDService> channel_id_service_;
102 scoped_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 scoped_ptr<net::TransportSecurityState> transport_security_state_; 104 std::unique_ptr<net::TransportSecurityState> transport_security_state_;
105 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 105 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
106 scoped_ptr<net::ProxyService> proxy_service_; 106 std::unique_ptr<net::ProxyService> proxy_service_;
107 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_; 107 std::unique_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_;
108 scoped_ptr<net::HttpServerProperties> http_server_properties_; 108 std::unique_ptr<net::HttpServerProperties> http_server_properties_;
109 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; 109 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings_;
110 scoped_ptr<net::HttpTransactionFactory> system_transaction_factory_; 110 std::unique_ptr<net::HttpTransactionFactory> system_transaction_factory_;
111 scoped_ptr<net::CookieStore> system_cookie_store_; 111 std::unique_ptr<net::CookieStore> system_cookie_store_;
112 scoped_ptr<net::URLRequestJobFactory> system_job_factory_; 112 std::unique_ptr<net::URLRequestJobFactory> system_job_factory_;
113 113
114 bool main_dependencies_initialized_; 114 bool main_dependencies_initialized_;
115 scoped_ptr<net::HttpTransactionFactory> main_transaction_factory_; 115 std::unique_ptr<net::HttpTransactionFactory> main_transaction_factory_;
116 scoped_ptr<net::CookieStore> main_cookie_store_; 116 std::unique_ptr<net::CookieStore> main_cookie_store_;
117 scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 117 std::unique_ptr<net::URLRequestJobFactory> main_job_factory_;
118 118
119 bool media_dependencies_initialized_; 119 bool media_dependencies_initialized_;
120 scoped_ptr<net::HttpTransactionFactory> media_transaction_factory_; 120 std::unique_ptr<net::HttpTransactionFactory> media_transaction_factory_;
121 121
122 net::NetLog* net_log_; 122 net::NetLog* net_log_;
123 }; 123 };
124 124
125 } // namespace shell 125 } // namespace shell
126 } // namespace chromecast 126 } // namespace chromecast
127 127
128 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ 128 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « chromecast/browser/test/chromecast_browser_test.h ('k') | chromecast/browser/url_request_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698