| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_http_user_agent_settings(other->http_user_agent_settings_); | 59 set_http_user_agent_settings(other->http_user_agent_settings_); |
| 60 } | 60 } |
| 61 | 61 |
| 62 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( | 62 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams() |
| 63 ) const { | 63 const { |
| 64 HttpTransactionFactory* transaction_factory = http_transaction_factory(); | 64 HttpTransactionFactory* transaction_factory = http_transaction_factory(); |
| 65 if (!transaction_factory) | 65 if (!transaction_factory) |
| 66 return NULL; | 66 return NULL; |
| 67 HttpNetworkSession* network_session = transaction_factory->GetSession(); | 67 HttpNetworkSession* network_session = transaction_factory->GetSession(); |
| 68 if (!network_session) | 68 if (!network_session) |
| 69 return NULL; | 69 return NULL; |
| 70 return &network_session->params(); | 70 return &network_session->params(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 scoped_ptr<URLRequest> URLRequestContext::CreateRequest( | 73 scoped_ptr<URLRequest> URLRequestContext::CreateRequest( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 100 base::debug::Alias(&num_requests); | 100 base::debug::Alias(&num_requests); |
| 101 base::debug::Alias(&has_delegate); | 101 base::debug::Alias(&has_delegate); |
| 102 base::debug::Alias(&load_flags); | 102 base::debug::Alias(&load_flags); |
| 103 base::debug::Alias(&stack_trace); | 103 base::debug::Alias(&stack_trace); |
| 104 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " | 104 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " |
| 105 << request->url().spec().c_str() << "."; | 105 << request->url().spec().c_str() << "."; |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace net | 109 } // namespace net |
| OLD | NEW |