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

Side by Side Diff: net/url_request/url_request_context.cc

Issue 7493025: Instantiate OriginBoundCertService in relevant places and do plumbing to pass it down to HttpNetw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "net/url_request/url_request_context.h" 5 #include "net/url_request/url_request_context.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "net/base/cookie_store.h" 8 #include "net/base/cookie_store.h"
9 #include "net/base/host_resolver.h" 9 #include "net/base/host_resolver.h"
10 #include "net/base/origin_bound_cert_service.h"
10 #include "net/ftp/ftp_transaction_factory.h" 11 #include "net/ftp/ftp_transaction_factory.h"
11 #include "net/http/http_transaction_factory.h" 12 #include "net/http/http_transaction_factory.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 URLRequestContext::URLRequestContext() 16 URLRequestContext::URLRequestContext()
16 : net_log_(NULL), 17 : net_log_(NULL),
17 host_resolver_(NULL), 18 host_resolver_(NULL),
18 cert_verifier_(NULL), 19 cert_verifier_(NULL),
19 origin_bound_cert_service_(NULL),
20 dnsrr_resolver_(NULL), 20 dnsrr_resolver_(NULL),
21 dns_cert_checker_(NULL), 21 dns_cert_checker_(NULL),
22 http_auth_handler_factory_(NULL), 22 http_auth_handler_factory_(NULL),
23 proxy_service_(NULL), 23 proxy_service_(NULL),
24 network_delegate_(NULL), 24 network_delegate_(NULL),
25 origin_bound_cert_service_(NULL),
25 transport_security_state_(NULL), 26 transport_security_state_(NULL),
26 ftp_auth_cache_(new FtpAuthCache), 27 ftp_auth_cache_(new FtpAuthCache),
27 http_transaction_factory_(NULL), 28 http_transaction_factory_(NULL),
28 ftp_transaction_factory_(NULL), 29 ftp_transaction_factory_(NULL),
29 job_factory_(NULL) { 30 job_factory_(NULL) {
30 } 31 }
31 32
32 void URLRequestContext::CopyFrom(URLRequestContext* other) { 33 void URLRequestContext::CopyFrom(URLRequestContext* other) {
33 // Copy URLRequestContext parameters. 34 // Copy URLRequestContext parameters.
34 set_net_log(other->net_log()); 35 set_net_log(other->net_log());
35 set_host_resolver(other->host_resolver()); 36 set_host_resolver(other->host_resolver());
36 set_cert_verifier(other->cert_verifier()); 37 set_cert_verifier(other->cert_verifier());
37 set_origin_bound_cert_service(other->origin_bound_cert_service());
38 set_dnsrr_resolver(other->dnsrr_resolver()); 38 set_dnsrr_resolver(other->dnsrr_resolver());
39 set_dns_cert_checker(other->dns_cert_checker()); 39 set_dns_cert_checker(other->dns_cert_checker());
40 set_http_auth_handler_factory(other->http_auth_handler_factory()); 40 set_http_auth_handler_factory(other->http_auth_handler_factory());
41 set_proxy_service(other->proxy_service()); 41 set_proxy_service(other->proxy_service());
42 set_ssl_config_service(other->ssl_config_service()); 42 set_ssl_config_service(other->ssl_config_service());
43 set_network_delegate(other->network_delegate()); 43 set_network_delegate(other->network_delegate());
44 set_cookie_store(other->cookie_store()); 44 set_cookie_store(other->cookie_store());
45 set_origin_bound_cert_service(other->origin_bound_cert_service());
45 set_transport_security_state(other->transport_security_state()); 46 set_transport_security_state(other->transport_security_state());
46 // FTPAuthCache is unique per context. 47 // FTPAuthCache is unique per context.
47 set_accept_language(other->accept_language()); 48 set_accept_language(other->accept_language());
48 set_accept_charset(other->accept_charset()); 49 set_accept_charset(other->accept_charset());
49 set_referrer_charset(other->referrer_charset()); 50 set_referrer_charset(other->referrer_charset());
50 set_http_transaction_factory(other->http_transaction_factory()); 51 set_http_transaction_factory(other->http_transaction_factory());
51 set_ftp_transaction_factory(other->ftp_transaction_factory()); 52 set_ftp_transaction_factory(other->ftp_transaction_factory());
52 set_job_factory(other->job_factory()); 53 set_job_factory(other->job_factory());
53 } 54 }
54 55
55 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { 56 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) {
56 cookie_store_ = cookie_store; 57 cookie_store_ = cookie_store;
57 } 58 }
58 59
60 void URLRequestContext::set_origin_bound_cert_service(
61 OriginBoundCertService* origin_bound_cert_service) {
62 origin_bound_cert_service_ = origin_bound_cert_service;
63 }
64
59 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { 65 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const {
60 return EmptyString(); 66 return EmptyString();
61 } 67 }
62 68
63 URLRequestContext::~URLRequestContext() { 69 URLRequestContext::~URLRequestContext() {
64 } 70 }
65 71
66 } // namespace net 72 } // namespace net
OLDNEW
« chrome/common/chrome_constants.h ('K') | « net/url_request/url_request_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698