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

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

Issue 949533004: Rename DataReductionProxyStatisticsPrefs to DataReductionProxyCompressionStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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"
11 #include "android_webview/browser/jni_dependency_factory.h" 11 #include "android_webview/browser/jni_dependency_factory.h"
12 #include "android_webview/browser/net/aw_url_request_context_getter.h" 12 #include "android_webview/browser/net/aw_url_request_context_getter.h"
13 #include "android_webview/browser/net/init_native_callback.h" 13 #include "android_webview/browser/net/init_native_callback.h"
14 #include "base/base_paths_android.h" 14 #include "base/base_paths_android.h"
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/prefs/pref_registry_simple.h" 17 #include "base/prefs/pref_registry_simple.h"
18 #include "base/prefs/pref_service.h" 18 #include "base/prefs/pref_service.h"
19 #include "base/prefs/pref_service_factory.h" 19 #include "base/prefs/pref_service_factory.h"
20 #include "components/autofill/core/common/autofill_pref_names.h" 20 #include "components/autofill/core/common/autofill_pref_names.h"
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h"
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref s.h" 23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref s.h"
23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h" 24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h"
24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat istics_prefs.h"
26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
27 #include "components/user_prefs/user_prefs.h" 27 #include "components/user_prefs/user_prefs.h"
28 #include "components/visitedlink/browser/visitedlink_master.h" 28 #include "components/visitedlink/browser/visitedlink_master.h"
29 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
30 #include "content/public/browser/ssl_host_state_delegate.h" 30 #include "content/public/browser/ssl_host_state_delegate.h"
31 #include "content/public/browser/storage_partition.h" 31 #include "content/public/browser/storage_partition.h"
32 #include "content/public/browser/web_contents.h" 32 #include "content/public/browser/web_contents.h"
33 #include "net/cookies/cookie_store.h" 33 #include "net/cookies/cookie_store.h"
34 #include "net/proxy/proxy_config_service_android.h" 34 #include "net/proxy/proxy_config_service_android.h"
35 #include "net/proxy/proxy_service.h" 35 #include "net/proxy/proxy_service.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 data_reduction_proxy::Client::WEBVIEW_ANDROID, 158 data_reduction_proxy::Client::WEBVIEW_ANDROID,
159 data_reduction_proxy::DataReductionProxyParams::kAllowed, 159 data_reduction_proxy::DataReductionProxyParams::kAllowed,
160 url_request_context_getter_->GetNetLog(), 160 url_request_context_getter_->GetNetLog(),
161 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 161 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
162 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 162 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
163 false /* enable_quic */)); 163 false /* enable_quic */));
164 data_reduction_proxy_settings_.reset( 164 data_reduction_proxy_settings_.reset(
165 new data_reduction_proxy::DataReductionProxySettings()); 165 new data_reduction_proxy::DataReductionProxySettings());
166 data_reduction_proxy_service_.reset( 166 data_reduction_proxy_service_.reset(
167 new data_reduction_proxy::DataReductionProxyService( 167 new data_reduction_proxy::DataReductionProxyService(
168 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>(), 168 scoped_ptr<
169 data_reduction_proxy::DataReductionProxyCompressionStats>(),
169 data_reduction_proxy_settings_.get(), GetAwURLRequestContext())); 170 data_reduction_proxy_settings_.get(), GetAwURLRequestContext()));
170 data_reduction_proxy_io_data_->SetDataReductionProxyService( 171 data_reduction_proxy_io_data_->SetDataReductionProxyService(
171 data_reduction_proxy_service_->GetWeakPtr()); 172 data_reduction_proxy_service_->GetWeakPtr());
172 173
173 visitedlink_master_.reset( 174 visitedlink_master_.reset(
174 new visitedlink::VisitedLinkMaster(this, this, false)); 175 new visitedlink::VisitedLinkMaster(this, this, false));
175 visitedlink_master_->Init(); 176 visitedlink_master_->Init();
176 177
177 form_database_service_.reset( 178 form_database_service_.reset(
178 new AwFormDatabaseService(context_storage_path_)); 179 new AwFormDatabaseService(context_storage_path_));
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 return; 371 return;
371 // We don't care about commit_delay for now. It is just a dummy value. 372 // We don't care about commit_delay for now. It is just a dummy value.
372 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); 373 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
373 data_reduction_proxy_service->EnableCompressionStatisticsLogging( 374 data_reduction_proxy_service->EnableCompressionStatisticsLogging(
374 user_pref_service_.get(), 375 user_pref_service_.get(),
375 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 376 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
376 commit_delay); 377 commit_delay);
377 } 378 }
378 379
379 } // namespace android_webview 380 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698