| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_); |
| 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_); |
| 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_referrer_charset(other->referrer_charset_); | |
| 62 set_http_transaction_factory(other->http_transaction_factory_); | 61 set_http_transaction_factory(other->http_transaction_factory_); |
| 63 set_ftp_transaction_factory(other->ftp_transaction_factory_); | 62 set_ftp_transaction_factory(other->ftp_transaction_factory_); |
| 64 set_job_factory(other->job_factory_); | 63 set_job_factory(other->job_factory_); |
| 65 set_throttler_manager(other->throttler_manager_); | 64 set_throttler_manager(other->throttler_manager_); |
| 66 } | 65 } |
| 67 | 66 |
| 68 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( | 67 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( |
| 69 ) const { | 68 ) const { |
| 70 HttpTransactionFactory* transaction_factory = http_transaction_factory(); | 69 HttpTransactionFactory* transaction_factory = http_transaction_factory(); |
| 71 if (!transaction_factory) | 70 if (!transaction_factory) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 base::debug::Alias(&num_requests); | 105 base::debug::Alias(&num_requests); |
| 107 base::debug::Alias(&has_delegate); | 106 base::debug::Alias(&has_delegate); |
| 108 base::debug::Alias(&load_flags); | 107 base::debug::Alias(&load_flags); |
| 109 base::debug::Alias(&stack_trace); | 108 base::debug::Alias(&stack_trace); |
| 110 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " | 109 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " |
| 111 << request->url().spec().c_str() << "."; | 110 << request->url().spec().c_str() << "."; |
| 112 } | 111 } |
| 113 } | 112 } |
| 114 | 113 |
| 115 } // namespace net | 114 } // namespace net |
| OLD | NEW |