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/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 set_proxy_service(other->proxy_service_); | 49 set_proxy_service(other->proxy_service_); |
50 set_ssl_config_service(other->ssl_config_service_.get()); | 50 set_ssl_config_service(other->ssl_config_service_.get()); |
51 set_network_delegate(other->network_delegate_); | 51 set_network_delegate(other->network_delegate_); |
52 set_http_server_properties(other->http_server_properties_); | 52 set_http_server_properties(other->http_server_properties_); |
53 set_cookie_store(other->cookie_store_.get()); | 53 set_cookie_store(other->cookie_store_.get()); |
54 set_transport_security_state(other->transport_security_state_); | 54 set_transport_security_state(other->transport_security_state_); |
55 set_cert_transparency_verifier(other->cert_transparency_verifier_); | 55 set_cert_transparency_verifier(other->cert_transparency_verifier_); |
56 set_http_transaction_factory(other->http_transaction_factory_); | 56 set_http_transaction_factory(other->http_transaction_factory_); |
57 set_job_factory(other->job_factory_); | 57 set_job_factory(other->job_factory_); |
58 set_throttler_manager(other->throttler_manager_); | 58 set_throttler_manager(other->throttler_manager_); |
| 59 set_sdch_manager(other->sdch_manager_); |
59 set_http_user_agent_settings(other->http_user_agent_settings_); | 60 set_http_user_agent_settings(other->http_user_agent_settings_); |
60 } | 61 } |
61 | 62 |
62 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( | 63 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( |
63 ) const { | 64 ) const { |
64 HttpTransactionFactory* transaction_factory = http_transaction_factory(); | 65 HttpTransactionFactory* transaction_factory = http_transaction_factory(); |
65 if (!transaction_factory) | 66 if (!transaction_factory) |
66 return NULL; | 67 return NULL; |
67 HttpNetworkSession* network_session = transaction_factory->GetSession(); | 68 HttpNetworkSession* network_session = transaction_factory->GetSession(); |
68 if (!network_session) | 69 if (!network_session) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 base::debug::Alias(&num_requests); | 101 base::debug::Alias(&num_requests); |
101 base::debug::Alias(&has_delegate); | 102 base::debug::Alias(&has_delegate); |
102 base::debug::Alias(&load_flags); | 103 base::debug::Alias(&load_flags); |
103 base::debug::Alias(&stack_trace); | 104 base::debug::Alias(&stack_trace); |
104 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " | 105 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " |
105 << request->url().spec().c_str() << "."; | 106 << request->url().spec().c_str() << "."; |
106 } | 107 } |
107 } | 108 } |
108 | 109 |
109 } // namespace net | 110 } // namespace net |
OLD | NEW |