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

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

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win shared fix Created 8 years, 9 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
« no previous file with comments | « net/url_request/url_request_test_util.cc ('k') | remoting/jingle_glue/ssl_socket_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "net/base/cert_verifier.h" 8 #include "net/base/cert_verifier.h"
9 #include "net/base/host_resolver.h" 9 #include "net/base/host_resolver.h"
10 #include "net/base/ssl_config_service_defaults.h" 10 #include "net/base/ssl_config_service_defaults.h"
(...skipping 10 matching lines...) Expand all
21 // which is in turn copied from some test code. Move it somewhere reusable. 21 // which is in turn copied from some test code. Move it somewhere reusable.
22 URLRequestContext::URLRequestContext( 22 URLRequestContext::URLRequestContext(
23 net::ProxyConfigService* proxy_config_service) 23 net::ProxyConfigService* proxy_config_service)
24 : ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) { 24 : ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) {
25 storage_.set_host_resolver( 25 storage_.set_host_resolver(
26 net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism, 26 net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism,
27 net::HostResolver::kDefaultRetryAttempts, 27 net::HostResolver::kDefaultRetryAttempts,
28 NULL)); 28 NULL));
29 storage_.set_proxy_service(net::ProxyService::CreateUsingSystemProxyResolver( 29 storage_.set_proxy_service(net::ProxyService::CreateUsingSystemProxyResolver(
30 proxy_config_service, 0u, NULL)); 30 proxy_config_service, 0u, NULL));
31 storage_.set_cert_verifier(new net::CertVerifier); 31 storage_.set_cert_verifier(net::CertVerifier::CreateDefault());
32 storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults); 32 storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults);
33 storage_.set_http_auth_handler_factory( 33 storage_.set_http_auth_handler_factory(
34 net::HttpAuthHandlerFactory::CreateDefault(host_resolver())); 34 net::HttpAuthHandlerFactory::CreateDefault(host_resolver()));
35 storage_.set_http_server_properties(new net::HttpServerPropertiesImpl); 35 storage_.set_http_server_properties(new net::HttpServerPropertiesImpl);
36 36
37 net::HttpNetworkSession::Params session_params; 37 net::HttpNetworkSession::Params session_params;
38 session_params.host_resolver = host_resolver(); 38 session_params.host_resolver = host_resolver();
39 session_params.cert_verifier = cert_verifier(); 39 session_params.cert_verifier = cert_verifier();
40 session_params.proxy_service = proxy_service(); 40 session_params.proxy_service = proxy_service();
41 session_params.ssl_config_service = ssl_config_service(); 41 session_params.ssl_config_service = ssl_config_service();
(...skipping 22 matching lines...) Expand all
64 } 64 }
65 65
66 scoped_refptr<base::MessageLoopProxy> 66 scoped_refptr<base::MessageLoopProxy>
67 URLRequestContextGetter::GetIOMessageLoopProxy() const { 67 URLRequestContextGetter::GetIOMessageLoopProxy() const {
68 return io_message_loop_proxy_; 68 return io_message_loop_proxy_;
69 } 69 }
70 70
71 URLRequestContextGetter::~URLRequestContextGetter() {} 71 URLRequestContextGetter::~URLRequestContextGetter() {}
72 72
73 } // namespace remoting 73 } // namespace remoting
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_util.cc ('k') | remoting/jingle_glue/ssl_socket_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698