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

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 430643002: Correcting the version field in the Chrome-Proxy header to be the chromium build and patch number. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Lei comments Created 6 years, 4 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 | android_webview/native/aw_contents_statics.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/aw_browser_context.h" 5 #include "android_webview/browser/aw_browser_context.h"
6 6
7 #include "android_webview/browser/aw_form_database_service.h" 7 #include "android_webview/browser/aw_form_database_service.h"
8 #include "android_webview/browser/aw_pref_store.h" 8 #include "android_webview/browser/aw_pref_store.h"
9 #include "android_webview/browser/aw_quota_manager_bridge.h" 9 #include "android_webview/browser/aw_quota_manager_bridge.h"
10 #include "android_webview/browser/aw_resource_context.h" 10 #include "android_webview/browser/aw_resource_context.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 void AwBrowserContext::PreMainMessageLoopRun() { 98 void AwBrowserContext::PreMainMessageLoopRun() {
99 cookie_store_ = CreateCookieStore(this); 99 cookie_store_ = CreateCookieStore(this);
100 #if defined(SPDY_PROXY_AUTH_ORIGIN) 100 #if defined(SPDY_PROXY_AUTH_ORIGIN)
101 data_reduction_proxy_settings_.reset( 101 data_reduction_proxy_settings_.reset(
102 new DataReductionProxySettings( 102 new DataReductionProxySettings(
103 new data_reduction_proxy::DataReductionProxyParams( 103 new data_reduction_proxy::DataReductionProxyParams(
104 data_reduction_proxy::DataReductionProxyParams::kAllowed))); 104 data_reduction_proxy::DataReductionProxyParams::kAllowed)));
105 data_reduction_proxy_auth_request_handler_.reset( 105 data_reduction_proxy_auth_request_handler_.reset(
106 new DataReductionProxyAuthRequestHandler( 106 new DataReductionProxyAuthRequestHandler(
107 data_reduction_proxy::kClientAndroidWebview,
108 data_reduction_proxy::kAndroidWebViewProtocolVersion,
sgurun-gerrit only 2014/08/04 21:46:54 why do you want to have a different protocol versi
sgurun-gerrit only 2014/08/04 22:58:02 himm safebrowsing signals is I think the reason? l
107 data_reduction_proxy_settings_->params())); 109 data_reduction_proxy_settings_->params()));
108 #endif 110 #endif
109 111
110 url_request_context_getter_ = 112 url_request_context_getter_ =
111 new AwURLRequestContextGetter(GetPath(), cookie_store_.get()); 113 new AwURLRequestContextGetter(GetPath(), cookie_store_.get());
112 114
113 if (data_reduction_proxy_settings_.get()) { 115 if (data_reduction_proxy_settings_.get()) {
114 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> 116 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
115 configurator(new data_reduction_proxy::DataReductionProxyConfigTracker( 117 configurator(new data_reduction_proxy::DataReductionProxyConfigTracker(
116 url_request_context_getter_->proxy_config_service(), 118 url_request_context_getter_->proxy_config_service(),
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 278
277 void AwBrowserContext::RebuildTable( 279 void AwBrowserContext::RebuildTable(
278 const scoped_refptr<URLEnumerator>& enumerator) { 280 const scoped_refptr<URLEnumerator>& enumerator) {
279 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 281 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
280 // can change in the lifetime of this WebView and may not yet be set here. 282 // can change in the lifetime of this WebView and may not yet be set here.
281 // Therefore this initialization path is not used. 283 // Therefore this initialization path is not used.
282 enumerator->OnComplete(true); 284 enumerator->OnComplete(true);
283 } 285 }
284 286
285 } // namespace android_webview 287 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | android_webview/native/aw_contents_statics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698