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

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

Issue 2067843003: Require a CTVerifier and CTPolicyEnforcer for TLS/QUIC sockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup Created 4 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
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_context_builder.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 "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/debug/alias.h" 8 #include "base/debug/alias.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 11 matching lines...) Expand all
22 cert_verifier_(nullptr), 22 cert_verifier_(nullptr),
23 channel_id_service_(nullptr), 23 channel_id_service_(nullptr),
24 http_auth_handler_factory_(nullptr), 24 http_auth_handler_factory_(nullptr),
25 proxy_service_(nullptr), 25 proxy_service_(nullptr),
26 network_delegate_(nullptr), 26 network_delegate_(nullptr),
27 http_server_properties_(nullptr), 27 http_server_properties_(nullptr),
28 http_user_agent_settings_(nullptr), 28 http_user_agent_settings_(nullptr),
29 cookie_store_(nullptr), 29 cookie_store_(nullptr),
30 transport_security_state_(nullptr), 30 transport_security_state_(nullptr),
31 cert_transparency_verifier_(nullptr), 31 cert_transparency_verifier_(nullptr),
32 ct_policy_enforcer_(nullptr),
32 http_transaction_factory_(nullptr), 33 http_transaction_factory_(nullptr),
33 job_factory_(nullptr), 34 job_factory_(nullptr),
34 throttler_manager_(nullptr), 35 throttler_manager_(nullptr),
35 backoff_manager_(nullptr), 36 backoff_manager_(nullptr),
36 sdch_manager_(nullptr), 37 sdch_manager_(nullptr),
37 network_quality_estimator_(nullptr), 38 network_quality_estimator_(nullptr),
38 url_requests_(new std::set<const URLRequest*>), 39 url_requests_(new std::set<const URLRequest*>),
39 has_known_mismatched_cookie_store_(false), 40 has_known_mismatched_cookie_store_(false),
40 enable_brotli_(false) {} 41 enable_brotli_(false) {}
41 42
42 URLRequestContext::~URLRequestContext() { 43 URLRequestContext::~URLRequestContext() {
43 AssertNoURLRequests(); 44 AssertNoURLRequests();
44 } 45 }
45 46
46 void URLRequestContext::CopyFrom(const URLRequestContext* other) { 47 void URLRequestContext::CopyFrom(const URLRequestContext* other) {
47 // Copy URLRequestContext parameters. 48 // Copy URLRequestContext parameters.
48 set_net_log(other->net_log_); 49 set_net_log(other->net_log_);
49 set_host_resolver(other->host_resolver_); 50 set_host_resolver(other->host_resolver_);
50 set_cert_verifier(other->cert_verifier_); 51 set_cert_verifier(other->cert_verifier_);
51 set_channel_id_service(other->channel_id_service_); 52 set_channel_id_service(other->channel_id_service_);
52 set_http_auth_handler_factory(other->http_auth_handler_factory_); 53 set_http_auth_handler_factory(other->http_auth_handler_factory_);
53 set_proxy_service(other->proxy_service_); 54 set_proxy_service(other->proxy_service_);
54 set_ssl_config_service(other->ssl_config_service_.get()); 55 set_ssl_config_service(other->ssl_config_service_.get());
55 set_network_delegate(other->network_delegate_); 56 set_network_delegate(other->network_delegate_);
56 set_http_server_properties(other->http_server_properties_); 57 set_http_server_properties(other->http_server_properties_);
57 set_cookie_store(other->cookie_store_); 58 set_cookie_store(other->cookie_store_);
58 set_transport_security_state(other->transport_security_state_); 59 set_transport_security_state(other->transport_security_state_);
59 set_cert_transparency_verifier(other->cert_transparency_verifier_); 60 set_cert_transparency_verifier(other->cert_transparency_verifier_);
61 set_ct_policy_enforcer(other->ct_policy_enforcer_);
60 set_http_transaction_factory(other->http_transaction_factory_); 62 set_http_transaction_factory(other->http_transaction_factory_);
61 set_job_factory(other->job_factory_); 63 set_job_factory(other->job_factory_);
62 set_throttler_manager(other->throttler_manager_); 64 set_throttler_manager(other->throttler_manager_);
63 set_backoff_manager(other->backoff_manager_); 65 set_backoff_manager(other->backoff_manager_);
64 set_sdch_manager(other->sdch_manager_); 66 set_sdch_manager(other->sdch_manager_);
65 set_http_user_agent_settings(other->http_user_agent_settings_); 67 set_http_user_agent_settings(other->http_user_agent_settings_);
66 set_network_quality_estimator(other->network_quality_estimator_); 68 set_network_quality_estimator(other->network_quality_estimator_);
67 set_enable_brotli(other->enable_brotli_); 69 set_enable_brotli(other->enable_brotli_);
68 } 70 }
69 71
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 int load_flags = request->load_flags(); 103 int load_flags = request->load_flags();
102 base::debug::Alias(url_buf); 104 base::debug::Alias(url_buf);
103 base::debug::Alias(&num_requests); 105 base::debug::Alias(&num_requests);
104 base::debug::Alias(&load_flags); 106 base::debug::Alias(&load_flags);
105 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " 107 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: "
106 << request->url().spec().c_str() << "."; 108 << request->url().spec().c_str() << ".";
107 } 109 }
108 } 110 }
109 111
110 } // namespace net 112 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698