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

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

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 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 | Annotate | Revision Log
« 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/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 29 matching lines...) Expand all
40 40
41 void URLRequestContext::CopyFrom(const URLRequestContext* other) { 41 void URLRequestContext::CopyFrom(const URLRequestContext* other) {
42 // Copy URLRequestContext parameters. 42 // Copy URLRequestContext parameters.
43 set_net_log(other->net_log_); 43 set_net_log(other->net_log_);
44 set_host_resolver(other->host_resolver_); 44 set_host_resolver(other->host_resolver_);
45 set_cert_verifier(other->cert_verifier_); 45 set_cert_verifier(other->cert_verifier_);
46 set_server_bound_cert_service(other->server_bound_cert_service_); 46 set_server_bound_cert_service(other->server_bound_cert_service_);
47 set_fraudulent_certificate_reporter(other->fraudulent_certificate_reporter_); 47 set_fraudulent_certificate_reporter(other->fraudulent_certificate_reporter_);
48 set_http_auth_handler_factory(other->http_auth_handler_factory_); 48 set_http_auth_handler_factory(other->http_auth_handler_factory_);
49 set_proxy_service(other->proxy_service_); 49 set_proxy_service(other->proxy_service_);
50 set_ssl_config_service(other->ssl_config_service_); 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_); 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_http_transaction_factory(other->http_transaction_factory_); 55 set_http_transaction_factory(other->http_transaction_factory_);
56 set_job_factory(other->job_factory_); 56 set_job_factory(other->job_factory_);
57 set_throttler_manager(other->throttler_manager_); 57 set_throttler_manager(other->throttler_manager_);
58 set_http_user_agent_settings(other->http_user_agent_settings_); 58 set_http_user_agent_settings(other->http_user_agent_settings_);
59 } 59 }
60 60
61 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( 61 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams(
62 ) const { 62 ) const {
63 HttpTransactionFactory* transaction_factory = http_transaction_factory(); 63 HttpTransactionFactory* transaction_factory = http_transaction_factory();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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