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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698