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

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

Issue 9733005: net: add DNS certificate revocation experiment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 "net/url_request/url_request_context.h" 5 #include "net/url_request/url_request_context.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "net/base/dnsrr_resolver.h"
9 #include "net/base/host_resolver.h" 10 #include "net/base/host_resolver.h"
10 #include "net/cookies/cookie_store.h" 11 #include "net/cookies/cookie_store.h"
11 #include "net/ftp/ftp_transaction_factory.h" 12 #include "net/ftp/ftp_transaction_factory.h"
12 #include "net/http/http_transaction_factory.h" 13 #include "net/http/http_transaction_factory.h"
13 14
14 namespace net { 15 namespace net {
15 16
16 URLRequestContext::URLRequestContext() 17 URLRequestContext::URLRequestContext()
17 : ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), 18 : ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
18 net_log_(NULL), 19 net_log_(NULL),
19 host_resolver_(NULL), 20 host_resolver_(NULL),
20 cert_verifier_(NULL), 21 cert_verifier_(NULL),
21 origin_bound_cert_service_(NULL), 22 origin_bound_cert_service_(NULL),
22 fraudulent_certificate_reporter_(NULL), 23 fraudulent_certificate_reporter_(NULL),
23 http_auth_handler_factory_(NULL), 24 http_auth_handler_factory_(NULL),
24 proxy_service_(NULL), 25 proxy_service_(NULL),
25 network_delegate_(NULL), 26 network_delegate_(NULL),
26 http_server_properties_(NULL), 27 http_server_properties_(NULL),
27 transport_security_state_(NULL), 28 transport_security_state_(NULL),
28 ftp_auth_cache_(new FtpAuthCache), 29 ftp_auth_cache_(new FtpAuthCache),
29 http_transaction_factory_(NULL), 30 http_transaction_factory_(NULL),
30 ftp_transaction_factory_(NULL), 31 ftp_transaction_factory_(NULL),
31 job_factory_(NULL) { 32 job_factory_(NULL),
33 dnsrr_resolver_(new DnsRRResolver) {
32 } 34 }
33 35
34 void URLRequestContext::CopyFrom(URLRequestContext* other) { 36 void URLRequestContext::CopyFrom(URLRequestContext* other) {
35 // Copy URLRequestContext parameters. 37 // Copy URLRequestContext parameters.
36 set_net_log(other->net_log()); 38 set_net_log(other->net_log());
37 set_host_resolver(other->host_resolver()); 39 set_host_resolver(other->host_resolver());
38 set_cert_verifier(other->cert_verifier()); 40 set_cert_verifier(other->cert_verifier());
39 set_origin_bound_cert_service(other->origin_bound_cert_service()); 41 set_origin_bound_cert_service(other->origin_bound_cert_service());
40 set_fraudulent_certificate_reporter(other->fraudulent_certificate_reporter()); 42 set_fraudulent_certificate_reporter(other->fraudulent_certificate_reporter());
41 set_http_auth_handler_factory(other->http_auth_handler_factory()); 43 set_http_auth_handler_factory(other->http_auth_handler_factory());
(...skipping 17 matching lines...) Expand all
59 } 61 }
60 62
61 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { 63 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const {
62 return EmptyString(); 64 return EmptyString();
63 } 65 }
64 66
65 URLRequestContext::~URLRequestContext() { 67 URLRequestContext::~URLRequestContext() {
66 } 68 }
67 69
68 } // namespace net 70 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698