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

Side by Side Diff: chrome/service/net/service_url_request_context.cc

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 | « chrome/service/gaia/service_gaia_authenticator.cc ('k') | chrome/service/service_ipc_server.h » ('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 "chrome/service/net/service_url_request_context.h" 5 #include "chrome/service/net/service_url_request_context.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX)
8 #include <sys/utsname.h> 8 #include <sys/utsname.h>
9 #endif 9 #endif
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 net::HttpNetworkSession::Params session_params; 123 net::HttpNetworkSession::Params session_params;
124 session_params.host_resolver = host_resolver(); 124 session_params.host_resolver = host_resolver();
125 session_params.cert_verifier = cert_verifier(); 125 session_params.cert_verifier = cert_verifier();
126 session_params.proxy_service = proxy_service(); 126 session_params.proxy_service = proxy_service();
127 session_params.ssl_config_service = ssl_config_service(); 127 session_params.ssl_config_service = ssl_config_service();
128 session_params.http_auth_handler_factory = http_auth_handler_factory(); 128 session_params.http_auth_handler_factory = http_auth_handler_factory();
129 session_params.http_server_properties = http_server_properties(); 129 session_params.http_server_properties = http_server_properties();
130 scoped_refptr<net::HttpNetworkSession> network_session( 130 scoped_refptr<net::HttpNetworkSession> network_session(
131 new net::HttpNetworkSession(session_params)); 131 new net::HttpNetworkSession(session_params));
132 storage_.set_http_transaction_factory( 132 storage_.set_http_transaction_factory(new net::HttpCache(
133 new net::HttpCache( 133 network_session.get(), net::HttpCache::DefaultBackend::InMemory(0)));
134 network_session,
135 net::HttpCache::DefaultBackend::InMemory(0)));
136 // In-memory cookie store. 134 // In-memory cookie store.
137 storage_.set_cookie_store(new net::CookieMonster(NULL, NULL)); 135 storage_.set_cookie_store(new net::CookieMonster(NULL, NULL));
138 storage_.set_http_user_agent_settings(new net::StaticHttpUserAgentSettings( 136 storage_.set_http_user_agent_settings(new net::StaticHttpUserAgentSettings(
139 "en-us,fr", user_agent)); 137 "en-us,fr", user_agent));
140 } 138 }
141 139
142 ServiceURLRequestContext::~ServiceURLRequestContext() { 140 ServiceURLRequestContext::~ServiceURLRequestContext() {
143 } 141 }
144 142
145 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter() 143 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter()
(...skipping 19 matching lines...) Expand all
165 proxy_config_service_.release())); 163 proxy_config_service_.release()));
166 return url_request_context_.get(); 164 return url_request_context_.get();
167 } 165 }
168 166
169 scoped_refptr<base::SingleThreadTaskRunner> 167 scoped_refptr<base::SingleThreadTaskRunner>
170 ServiceURLRequestContextGetter::GetNetworkTaskRunner() const { 168 ServiceURLRequestContextGetter::GetNetworkTaskRunner() const {
171 return network_task_runner_; 169 return network_task_runner_;
172 } 170 }
173 171
174 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {} 172 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {}
OLDNEW
« no previous file with comments | « chrome/service/gaia/service_gaia_authenticator.cc ('k') | chrome/service/service_ipc_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698