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

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

Issue 1173343009: LevelDB storage for data reduction proxy to store data usage stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove friend from impl Created 5 years, 5 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
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 data_reduction_proxy_service = 379 data_reduction_proxy_service =
380 GetDataReductionProxySettings()->data_reduction_proxy_service(); 380 GetDataReductionProxySettings()->data_reduction_proxy_service();
381 DCHECK(data_reduction_proxy_service); 381 DCHECK(data_reduction_proxy_service);
382 if (data_reduction_proxy_service->compression_stats()) 382 if (data_reduction_proxy_service->compression_stats())
383 return; 383 return;
384 // 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.
385 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); 385 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
386 data_reduction_proxy_service->EnableCompressionStatisticsLogging( 386 data_reduction_proxy_service->EnableCompressionStatisticsLogging(
387 user_pref_service_.get(), 387 user_pref_service_.get(),
388 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 388 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
389 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
389 commit_delay); 390 commit_delay);
390 } 391 }
391 392
392 } // namespace android_webview 393 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698