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

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

Issue 903213003: Enable QUIC for proxies based on Finch config and command line switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed error due to missing argument Created 5 years, 10 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/io_thread.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 "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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 user_pref_service_ = pref_service_factory.Create(pref_registry).Pass(); 273 user_pref_service_ = pref_service_factory.Create(pref_registry).Pass();
274 274
275 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); 275 user_prefs::UserPrefs::Set(this, user_pref_service_.get());
276 276
277 if (data_reduction_proxy_settings_) { 277 if (data_reduction_proxy_settings_) {
278 data_reduction_proxy_settings_->InitDataReductionProxySettings( 278 data_reduction_proxy_settings_->InitDataReductionProxySettings(
279 user_pref_service_.get(), 279 user_pref_service_.get(),
280 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>(), 280 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>(),
281 GetRequestContext(), 281 GetRequestContext(),
282 GetAwURLRequestContext()->GetNetLog(), 282 GetAwURLRequestContext()->GetNetLog(),
283 data_reduction_proxy_io_data_->event_store()); 283 data_reduction_proxy_io_data_->event_store(),
284 false);
sgurun-gerrit only 2015/02/20 01:47:53 Please add a comment explaining QUIC is disabled f
284 data_reduction_proxy_settings_->MaybeActivateDataReductionProxy(true); 285 data_reduction_proxy_settings_->MaybeActivateDataReductionProxy(true);
285 286
286 SetDataReductionProxyEnabled(data_reduction_proxy_enabled_); 287 SetDataReductionProxyEnabled(data_reduction_proxy_enabled_);
287 } 288 }
288 } 289 }
289 290
290 scoped_ptr<content::ZoomLevelDelegate> 291 scoped_ptr<content::ZoomLevelDelegate>
291 AwBrowserContext::CreateZoomLevelDelegate( 292 AwBrowserContext::CreateZoomLevelDelegate(
292 const base::FilePath& partition_path) { 293 const base::FilePath& partition_path) {
293 return nullptr; 294 return nullptr;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); 382 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
382 GetDataReductionProxySettings()->EnableCompressionStatisticsLogging( 383 GetDataReductionProxySettings()->EnableCompressionStatisticsLogging(
383 user_pref_service_.get(), 384 user_pref_service_.get(),
384 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 385 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
385 commit_delay); 386 commit_delay);
386 GetDataReductionProxyIOData()->SetDataReductionProxyStatisticsPrefs( 387 GetDataReductionProxyIOData()->SetDataReductionProxyStatisticsPrefs(
387 GetDataReductionProxySettings()->statistics_prefs()); 388 GetDataReductionProxySettings()->statistics_prefs());
388 } 389 }
389 390
390 } // namespace android_webview 391 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698