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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.h

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Removing statistics prefs from Android WebView Created 6 years, 3 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
13 #include "chrome/browser/net/chrome_url_request_context_getter.h" 13 #include "chrome/browser/net/chrome_url_request_context_getter.h"
14 #include "chrome/browser/profiles/profile_io_data.h" 14 #include "chrome/browser/profiles/profile_io_data.h"
15 #include "content/public/browser/cookie_store_factory.h" 15 #include "content/public/browser/cookie_store_factory.h"
16 16
17 namespace chrome_browser_net { 17 namespace chrome_browser_net {
18 class Predictor; 18 class Predictor;
19 } // namespace chrome_browser_net 19 } // namespace chrome_browser_net
20 20
21 namespace content { 21 namespace content {
22 class CookieCryptoDelegate; 22 class CookieCryptoDelegate;
23 } // namespace content 23 } // namespace content
24 24
25 #if defined(SPDY_PROXY_AUTH_ORIGIN) 25 #if defined(SPDY_PROXY_AUTH_ORIGIN)
26 namespace data_reduction_proxy { 26 namespace data_reduction_proxy {
27 class DataReductionProxyParams; 27 class DataReductionProxyParams;
28 class DataReductionProxyUsageStats; 28 class DataReductionProxyUsageStats;
29 class DataReductionProxyAuthRequestHandler; 29 class DataReductionProxyAuthRequestHandler;
30 } 30 class DataReductionProxyStatisticsPrefs;
31 } // namespace data_reduction_proxy
31 #endif 32 #endif
32 33
33 namespace domain_reliability { 34 namespace domain_reliability {
34 class DomainReliabilityMonitor; 35 class DomainReliabilityMonitor;
35 } // namespace domain_reliability 36 } // namespace domain_reliability
36 37
37 namespace net { 38 namespace net {
38 class FtpTransactionFactory; 39 class FtpTransactionFactory;
39 class HttpServerProperties; 40 class HttpServerProperties;
40 class HttpServerPropertiesManager; 41 class HttpServerPropertiesManager;
(...skipping 29 matching lines...) Expand all
70 const base::FilePath& infinite_cache_path, 71 const base::FilePath& infinite_cache_path,
71 chrome_browser_net::Predictor* predictor, 72 chrome_browser_net::Predictor* predictor,
72 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, 73 content::CookieStoreConfig::SessionCookieMode session_cookie_mode,
73 storage::SpecialStoragePolicy* special_storage_policy, 74 storage::SpecialStoragePolicy* special_storage_policy,
74 scoped_ptr<domain_reliability::DomainReliabilityMonitor> 75 scoped_ptr<domain_reliability::DomainReliabilityMonitor>
75 domain_reliability_monitor, 76 domain_reliability_monitor,
76 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, 77 const base::Callback<void(bool)>& data_reduction_proxy_unavailable,
77 scoped_ptr<DataReductionProxyChromeConfigurator> 78 scoped_ptr<DataReductionProxyChromeConfigurator>
78 data_reduction_proxy_chrome_configurator, 79 data_reduction_proxy_chrome_configurator,
79 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 80 scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
80 data_reduction_proxy_params); 81 data_reduction_proxy_params,
82 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
83 data_reduction_proxy_statistics_prefs);
81 84
82 // These Create*ContextGetter() functions are only exposed because the 85 // These Create*ContextGetter() functions are only exposed because the
83 // circular relationship between Profile, ProfileIOData::Handle, and the 86 // circular relationship between Profile, ProfileIOData::Handle, and the
84 // ChromeURLRequestContextGetter factories requires Profile be able to call 87 // ChromeURLRequestContextGetter factories requires Profile be able to call
85 // these functions. 88 // these functions.
86 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( 89 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter(
87 content::ProtocolHandlerMap* protocol_handlers, 90 content::ProtocolHandlerMap* protocol_handlers,
88 content::URLRequestInterceptorScopedVector request_interceptors, 91 content::URLRequestInterceptorScopedVector request_interceptors,
89 PrefService* local_state, 92 PrefService* local_state,
90 IOThread* io_thread) const; 93 IOThread* io_thread) const;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 #if defined(SPDY_PROXY_AUTH_ORIGIN) 254 #if defined(SPDY_PROXY_AUTH_ORIGIN)
252 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 255 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
253 data_reduction_proxy_params_; 256 data_reduction_proxy_params_;
254 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> 257 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats>
255 data_reduction_proxy_usage_stats_; 258 data_reduction_proxy_usage_stats_;
256 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; 259 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_;
257 mutable scoped_ptr<DataReductionProxyChromeConfigurator> 260 mutable scoped_ptr<DataReductionProxyChromeConfigurator>
258 data_reduction_proxy_chrome_configurator_; 261 data_reduction_proxy_chrome_configurator_;
259 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> 262 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
260 data_reduction_proxy_auth_request_handler_; 263 data_reduction_proxy_auth_request_handler_;
264 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
265 data_reduction_proxy_statistics_prefs_;
261 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) 266 #endif // defined(SPDY_PROXY_AUTH_ORIGIN)
262 267
263 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 268 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
264 }; 269 };
265 270
266 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698