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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 16 matching lines...) Expand all
27 #include "chrome/browser/net/connect_interceptor.h" 27 #include "chrome/browser/net/connect_interceptor.h"
28 #include "chrome/browser/net/pref_proxy_config_tracker.h" 28 #include "chrome/browser/net/pref_proxy_config_tracker.h"
29 #include "chrome/browser/net/proxy_service_factory.h" 29 #include "chrome/browser/net/proxy_service_factory.h"
30 #include "chrome/browser/net/sdch_dictionary_fetcher.h" 30 #include "chrome/browser/net/sdch_dictionary_fetcher.h"
31 #include "chrome/browser/prefs/pref_service.h" 31 #include "chrome/browser/prefs/pref_service.h"
32 #include "chrome/common/chrome_switches.h" 32 #include "chrome/common/chrome_switches.h"
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/common/content_client.h" 35 #include "content/public/common/content_client.h"
36 #include "content/public/common/url_fetcher.h" 36 #include "content/public/common/url_fetcher.h"
37 #include "net/base/cert_verifier.h"
38 #include "net/base/cookie_monster.h" 37 #include "net/base/cookie_monster.h"
39 #include "net/base/default_origin_bound_cert_store.h" 38 #include "net/base/default_origin_bound_cert_store.h"
40 #include "net/base/host_cache.h" 39 #include "net/base/host_cache.h"
41 #include "net/base/host_resolver.h" 40 #include "net/base/host_resolver.h"
42 #include "net/base/mapped_host_resolver.h" 41 #include "net/base/mapped_host_resolver.h"
42 #include "net/base/multi_threaded_cert_verifier.h"
43 #include "net/base/net_util.h" 43 #include "net/base/net_util.h"
44 #include "net/base/origin_bound_cert_service.h" 44 #include "net/base/origin_bound_cert_service.h"
45 #include "net/base/sdch_manager.h" 45 #include "net/base/sdch_manager.h"
46 #include "net/ftp/ftp_network_layer.h" 46 #include "net/ftp/ftp_network_layer.h"
47 #include "net/http/http_auth_filter.h" 47 #include "net/http/http_auth_filter.h"
48 #include "net/http/http_auth_handler_factory.h" 48 #include "net/http/http_auth_handler_factory.h"
49 #include "net/http/http_network_layer.h" 49 #include "net/http/http_network_layer.h"
50 #include "net/http/http_network_session.h" 50 #include "net/http/http_network_session.h"
51 #include "net/http/http_server_properties_impl.h" 51 #include "net/http/http_server_properties_impl.h"
52 #include "net/proxy/proxy_config_service.h" 52 #include "net/proxy/proxy_config_service.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 globals_->extension_event_router_forwarder = 388 globals_->extension_event_router_forwarder =
389 extension_event_router_forwarder_; 389 extension_event_router_forwarder_;
390 globals_->system_network_delegate.reset(new ChromeNetworkDelegate( 390 globals_->system_network_delegate.reset(new ChromeNetworkDelegate(
391 extension_event_router_forwarder_, 391 extension_event_router_forwarder_,
392 NULL, 392 NULL,
393 NULL, 393 NULL,
394 NULL, 394 NULL,
395 &system_enable_referrers_)); 395 &system_enable_referrers_));
396 globals_->host_resolver.reset( 396 globals_->host_resolver.reset(
397 CreateGlobalHostResolver(net_log_)); 397 CreateGlobalHostResolver(net_log_));
398 globals_->cert_verifier.reset(new net::CertVerifier); 398 globals_->cert_verifier.reset(new net::MultiThreadedCertVerifier);
399 globals_->transport_security_state.reset(new net::TransportSecurityState("")); 399 globals_->transport_security_state.reset(new net::TransportSecurityState(""));
400 globals_->ssl_config_service = GetSSLConfigService(); 400 globals_->ssl_config_service = GetSSLConfigService();
401 globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory( 401 globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory(
402 globals_->host_resolver.get())); 402 globals_->host_resolver.get()));
403 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl); 403 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl);
404 // For the ProxyScriptFetcher, we use a direct ProxyService. 404 // For the ProxyScriptFetcher, we use a direct ProxyService.
405 globals_->proxy_script_fetcher_proxy_service.reset( 405 globals_->proxy_script_fetcher_proxy_service.reset(
406 net::ProxyService::CreateDirectWithNetLog(net_log_)); 406 net::ProxyService::CreateDirectWithNetLog(net_log_));
407 // In-memory cookie store. 407 // In-memory cookie store.
408 globals_->system_cookie_store = new net::CookieMonster(NULL, NULL); 408 globals_->system_cookie_store = new net::CookieMonster(NULL, NULL);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 new net::HttpNetworkLayer( 604 new net::HttpNetworkLayer(
605 new net::HttpNetworkSession(system_params))); 605 new net::HttpNetworkSession(system_params)));
606 globals_->system_ftp_transaction_factory.reset( 606 globals_->system_ftp_transaction_factory.reset(
607 new net::FtpNetworkLayer(globals_->host_resolver.get())); 607 new net::FtpNetworkLayer(globals_->host_resolver.get()));
608 globals_->system_request_context = 608 globals_->system_request_context =
609 ConstructSystemRequestContext(globals_, net_log_); 609 ConstructSystemRequestContext(globals_, net_log_);
610 610
611 sdch_manager_->set_sdch_fetcher( 611 sdch_manager_->set_sdch_fetcher(
612 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); 612 new SdchDictionaryFetcher(system_url_request_context_getter_.get()));
613 } 613 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698