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

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

Issue 1127893002: Add DataReductionProxyExperimentsStats and UMA for measuring potentially non-compressed bytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failures Created 5 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/net/spdyproxy/data_reduction_proxy_chrome_io_data.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_permission_manager.h" 8 #include "android_webview/browser/aw_permission_manager.h"
9 #include "android_webview/browser/aw_pref_store.h" 9 #include "android_webview/browser/aw_pref_store.h"
10 #include "android_webview/browser/aw_quota_manager_bridge.h" 10 #include "android_webview/browser/aw_quota_manager_bridge.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 164 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
165 false /* enable */, 165 false /* enable */,
166 false /* enable_quic */, 166 false /* enable_quic */,
167 GetUserAgent())); 167 GetUserAgent()));
168 data_reduction_proxy_settings_.reset( 168 data_reduction_proxy_settings_.reset(
169 new data_reduction_proxy::DataReductionProxySettings()); 169 new data_reduction_proxy::DataReductionProxySettings());
170 data_reduction_proxy_service_.reset( 170 data_reduction_proxy_service_.reset(
171 new data_reduction_proxy::DataReductionProxyService( 171 new data_reduction_proxy::DataReductionProxyService(
172 scoped_ptr< 172 scoped_ptr<
173 data_reduction_proxy::DataReductionProxyCompressionStats>(), 173 data_reduction_proxy::DataReductionProxyCompressionStats>(),
174 data_reduction_proxy_settings_.get(), GetAwURLRequestContext(), 174 data_reduction_proxy_settings_.get(), nullptr,
175 GetAwURLRequestContext(),
175 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 176 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
176 data_reduction_proxy_io_data_->SetDataReductionProxyService( 177 data_reduction_proxy_io_data_->SetDataReductionProxyService(
177 data_reduction_proxy_service_->GetWeakPtr()); 178 data_reduction_proxy_service_->GetWeakPtr());
178 179
179 visitedlink_master_.reset( 180 visitedlink_master_.reset(
180 new visitedlink::VisitedLinkMaster(this, this, false)); 181 new visitedlink::VisitedLinkMaster(this, this, false));
181 visitedlink_master_->Init(); 182 visitedlink_master_->Init();
182 183
183 form_database_service_.reset( 184 form_database_service_.reset(
184 new AwFormDatabaseService(context_storage_path_)); 185 new AwFormDatabaseService(context_storage_path_));
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 return; 383 return;
383 // We don't care about commit_delay for now. It is just a dummy value. 384 // We don't care about commit_delay for now. It is just a dummy value.
384 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); 385 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
385 data_reduction_proxy_service->EnableCompressionStatisticsLogging( 386 data_reduction_proxy_service->EnableCompressionStatisticsLogging(
386 user_pref_service_.get(), 387 user_pref_service_.get(),
387 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 388 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
388 commit_delay); 389 commit_delay);
389 } 390 }
390 391
391 } // namespace android_webview 392 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698