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

Side by Side Diff: remoting/host/url_request_context.cc

Issue 16501002: Give more request types a TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enforce CalledOnValidThread in all non-static methods. Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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 #include "remoting/host/url_request_context.h" 5 #include "remoting/host/url_request_context.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "net/cert/cert_verifier.h" 8 #include "net/cert/cert_verifier.h"
9 #include "net/dns/host_resolver.h" 9 #include "net/dns/host_resolver.h"
10 #include "net/http/http_auth_handler_factory.h" 10 #include "net/http/http_auth_handler_factory.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 storage_.set_cert_verifier(net::CertVerifier::CreateDefault()); 89 storage_.set_cert_verifier(net::CertVerifier::CreateDefault());
90 storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults); 90 storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults);
91 storage_.set_http_auth_handler_factory( 91 storage_.set_http_auth_handler_factory(
92 net::HttpAuthHandlerFactory::CreateDefault(host_resolver())); 92 net::HttpAuthHandlerFactory::CreateDefault(host_resolver()));
93 storage_.set_http_server_properties(new net::HttpServerPropertiesImpl); 93 storage_.set_http_server_properties(new net::HttpServerPropertiesImpl);
94 storage_.set_transport_security_state(new net::TransportSecurityState); 94 storage_.set_transport_security_state(new net::TransportSecurityState);
95 95
96 net::HttpNetworkSession::Params session_params; 96 net::HttpNetworkSession::Params session_params;
97 session_params.host_resolver = host_resolver(); 97 session_params.host_resolver = host_resolver();
98 session_params.cert_verifier = cert_verifier(); 98 session_params.cert_verifier = cert_verifier();
99 session_params.transport_security_state = transport_security_state();
99 session_params.proxy_service = proxy_service(); 100 session_params.proxy_service = proxy_service();
100 session_params.ssl_config_service = ssl_config_service(); 101 session_params.ssl_config_service = ssl_config_service();
101 session_params.http_auth_handler_factory = http_auth_handler_factory(); 102 session_params.http_auth_handler_factory = http_auth_handler_factory();
102 session_params.http_server_properties = http_server_properties(); 103 session_params.http_server_properties = http_server_properties();
103 session_params.net_log = net_log.get(); 104 session_params.net_log = net_log.get();
104 scoped_refptr<net::HttpNetworkSession> network_session( 105 scoped_refptr<net::HttpNetworkSession> network_session(
105 new net::HttpNetworkSession(session_params)); 106 new net::HttpNetworkSession(session_params));
106 storage_.set_http_transaction_factory( 107 storage_.set_http_transaction_factory(
107 new net::HttpNetworkLayer(network_session.get())); 108 new net::HttpNetworkLayer(network_session.get()));
108 storage_.set_net_log(net_log.release()); 109 storage_.set_net_log(net_log.release());
(...skipping 20 matching lines...) Expand all
129 130
130 scoped_refptr<base::SingleThreadTaskRunner> 131 scoped_refptr<base::SingleThreadTaskRunner>
131 URLRequestContextGetter::GetNetworkTaskRunner() const { 132 URLRequestContextGetter::GetNetworkTaskRunner() const {
132 return network_task_runner_; 133 return network_task_runner_;
133 } 134 }
134 135
135 URLRequestContextGetter::~URLRequestContextGetter() { 136 URLRequestContextGetter::~URLRequestContextGetter() {
136 } 137 }
137 138
138 } // namespace remoting 139 } // namespace remoting
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | remoting/protocol/ssl_hmac_channel_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698