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

Side by Side Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Sync'd to revision p349162. Created 5 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/platform_keys/verify_trust_api.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 "android_webview/browser/net/aw_url_request_context_getter.h" 5 #include "android_webview/browser/net/aw_url_request_context_getter.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_content_browser_client.h" 10 #include "android_webview/browser/aw_content_browser_client.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 aw_network_delegate.Pass(), 210 aw_network_delegate.Pass(),
211 false /* No UMA is produced to track bypasses. */) 211 false /* No UMA is produced to track bypasses. */)
212 .Pass()); 212 .Pass());
213 #if !defined(DISABLE_FTP_SUPPORT) 213 #if !defined(DISABLE_FTP_SUPPORT)
214 builder.set_ftp_enabled(false); // Android WebView does not support ftp yet. 214 builder.set_ftp_enabled(false); // Android WebView does not support ftp yet.
215 #endif 215 #endif
216 DCHECK(proxy_config_service_.get()); 216 DCHECK(proxy_config_service_.get());
217 // Android provides a local HTTP proxy that handles all the proxying. 217 // Android provides a local HTTP proxy that handles all the proxying.
218 // Create the proxy without a resolver since we rely on this local HTTP proxy. 218 // Create the proxy without a resolver since we rely on this local HTTP proxy.
219 // TODO(sgurun) is this behavior guaranteed through SDK? 219 // TODO(sgurun) is this behavior guaranteed through SDK?
220 builder.set_proxy_service( 220 builder.set_proxy_service(net::ProxyService::CreateWithoutProxyResolver(
221 make_scoped_ptr(net::ProxyService::CreateWithoutProxyResolver( 221 proxy_config_service_.release(), net_log_.get()));
222 proxy_config_service_.release(), net_log_.get())));
223 builder.set_net_log(net_log_.get()); 222 builder.set_net_log(net_log_.get());
224 builder.SetCookieAndChannelIdStores(cookie_store_, NULL); 223 builder.SetCookieAndChannelIdStores(cookie_store_, NULL);
225 ApplyCmdlineOverridesToURLRequestContextBuilder(&builder); 224 ApplyCmdlineOverridesToURLRequestContextBuilder(&builder);
226 225
227 url_request_context_ = builder.Build().Pass(); 226 url_request_context_ = builder.Build().Pass();
228 // TODO(mnaganov): Fix URLRequestContextBuilder to use proper threads. 227 // TODO(mnaganov): Fix URLRequestContextBuilder to use proper threads.
229 net::HttpNetworkSession::Params network_session_params; 228 net::HttpNetworkSession::Params network_session_params;
230 229
231 PopulateNetworkSessionParams(url_request_context_.get(), 230 PopulateNetworkSessionParams(url_request_context_.get(),
232 &network_session_params); 231 &network_session_params);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 return net_log_.get(); 277 return net_log_.get();
279 } 278 }
280 279
281 void AwURLRequestContextGetter::SetKeyOnIO(const std::string& key) { 280 void AwURLRequestContextGetter::SetKeyOnIO(const std::string& key) {
282 DCHECK(AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()); 281 DCHECK(AwBrowserContext::GetDefault()->GetDataReductionProxyIOData());
283 AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()-> 282 AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()->
284 request_options()->SetKeyOnIO(key); 283 request_options()->SetKeyOnIO(key);
285 } 284 }
286 285
287 } // namespace android_webview 286 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/platform_keys/verify_trust_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698