OLD | NEW |
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/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 void URLRequestContext::CopyFrom(const URLRequestContext* other) { | 44 void URLRequestContext::CopyFrom(const URLRequestContext* other) { |
45 // Copy URLRequestContext parameters. | 45 // Copy URLRequestContext parameters. |
46 set_net_log(other->net_log_); | 46 set_net_log(other->net_log_); |
47 set_host_resolver(other->host_resolver_); | 47 set_host_resolver(other->host_resolver_); |
48 set_cert_verifier(other->cert_verifier_); | 48 set_cert_verifier(other->cert_verifier_); |
49 set_server_bound_cert_service(other->server_bound_cert_service_); | 49 set_server_bound_cert_service(other->server_bound_cert_service_); |
50 set_fraudulent_certificate_reporter(other->fraudulent_certificate_reporter_); | 50 set_fraudulent_certificate_reporter(other->fraudulent_certificate_reporter_); |
51 set_http_auth_handler_factory(other->http_auth_handler_factory_); | 51 set_http_auth_handler_factory(other->http_auth_handler_factory_); |
52 set_proxy_service(other->proxy_service_); | 52 set_proxy_service(other->proxy_service_); |
53 set_ssl_config_service(other->ssl_config_service_); | 53 set_ssl_config_service(other->ssl_config_service_.get()); |
54 set_network_delegate(other->network_delegate_); | 54 set_network_delegate(other->network_delegate_); |
55 set_http_server_properties(other->http_server_properties_); | 55 set_http_server_properties(other->http_server_properties_); |
56 set_cookie_store(other->cookie_store_); | 56 set_cookie_store(other->cookie_store_.get()); |
57 set_transport_security_state(other->transport_security_state_); | 57 set_transport_security_state(other->transport_security_state_); |
58 // FTPAuthCache is unique per context. | 58 // FTPAuthCache is unique per context. |
59 set_accept_language(other->accept_language_); | 59 set_accept_language(other->accept_language_); |
60 set_accept_charset(other->accept_charset_); | 60 set_accept_charset(other->accept_charset_); |
61 set_http_transaction_factory(other->http_transaction_factory_); | 61 set_http_transaction_factory(other->http_transaction_factory_); |
62 set_ftp_transaction_factory(other->ftp_transaction_factory_); | 62 set_ftp_transaction_factory(other->ftp_transaction_factory_); |
63 set_job_factory(other->job_factory_); | 63 set_job_factory(other->job_factory_); |
64 set_throttler_manager(other->throttler_manager_); | 64 set_throttler_manager(other->throttler_manager_); |
65 } | 65 } |
66 | 66 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 base::debug::Alias(&num_requests); | 105 base::debug::Alias(&num_requests); |
106 base::debug::Alias(&has_delegate); | 106 base::debug::Alias(&has_delegate); |
107 base::debug::Alias(&load_flags); | 107 base::debug::Alias(&load_flags); |
108 base::debug::Alias(&stack_trace); | 108 base::debug::Alias(&stack_trace); |
109 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " | 109 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " |
110 << request->url().spec().c_str() << "."; | 110 << request->url().spec().c_str() << "."; |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 } // namespace net | 114 } // namespace net |
OLD | NEW |