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

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

Issue 1862193002: Enable QUIC for proxies only when QUIC is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sclittle comments Created 4 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
« no previous file with comments | « no previous file | chrome/browser/io_thread.h » ('j') | chrome/browser/io_thread.cc » ('J')
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 <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_policy_connector.h" 9 #include "android_webview/browser/aw_browser_policy_connector.h"
10 #include "android_webview/browser/aw_form_database_service.h" 10 #include "android_webview/browser/aw_form_database_service.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 cache_path, CreateProxyConfigService(), user_pref_service_.get()); 206 cache_path, CreateProxyConfigService(), user_pref_service_.get());
207 207
208 data_reduction_proxy_io_data_.reset( 208 data_reduction_proxy_io_data_.reset(
209 new data_reduction_proxy::DataReductionProxyIOData( 209 new data_reduction_proxy::DataReductionProxyIOData(
210 data_reduction_proxy::Client::WEBVIEW_ANDROID, 210 data_reduction_proxy::Client::WEBVIEW_ANDROID,
211 data_reduction_proxy::DataReductionProxyParams::kAllowed, 211 data_reduction_proxy::DataReductionProxyParams::kAllowed,
212 url_request_context_getter_->GetNetLog(), 212 url_request_context_getter_->GetNetLog(),
213 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 213 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
214 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 214 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
215 false /* enable */, 215 false /* enable */,
216 false /* enable_quic */,
217 GetUserAgent())); 216 GetUserAgent()));
218 data_reduction_proxy_settings_.reset( 217 data_reduction_proxy_settings_.reset(
219 new data_reduction_proxy::DataReductionProxySettings()); 218 new data_reduction_proxy::DataReductionProxySettings());
220 std::unique_ptr<data_reduction_proxy::DataStore> store( 219 std::unique_ptr<data_reduction_proxy::DataStore> store(
221 new data_reduction_proxy::DataStore()); 220 new data_reduction_proxy::DataStore());
222 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool(); 221 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
223 scoped_refptr<base::SequencedTaskRunner> db_task_runner = 222 scoped_refptr<base::SequencedTaskRunner> db_task_runner =
224 pool->GetSequencedTaskRunnerWithShutdownBehavior( 223 pool->GetSequencedTaskRunnerWithShutdownBehavior(
225 pool->GetSequenceToken(), 224 pool->GetSequenceToken(),
226 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); 225 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 return; 457 return;
459 // We don't care about commit_delay for now. It is just a dummy value. 458 // We don't care about commit_delay for now. It is just a dummy value.
460 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); 459 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
461 data_reduction_proxy_service->EnableCompressionStatisticsLogging( 460 data_reduction_proxy_service->EnableCompressionStatisticsLogging(
462 user_pref_service_.get(), 461 user_pref_service_.get(),
463 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 462 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
464 commit_delay); 463 commit_delay);
465 } 464 }
466 465
467 } // namespace android_webview 466 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.h » ('j') | chrome/browser/io_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698