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

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: Undo BUILD.gn and fix aw_browser_context 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 21 matching lines...) Expand all
62 const base::FilePath& cookie_path, 63 const base::FilePath& cookie_path,
63 const base::FilePath& channel_id_path, 64 const base::FilePath& channel_id_path,
64 const base::FilePath& cache_path, 65 const base::FilePath& cache_path,
65 int cache_max_size, 66 int cache_max_size,
66 const base::FilePath& media_cache_path, 67 const base::FilePath& media_cache_path,
67 int media_cache_max_size, 68 int media_cache_max_size,
68 const base::FilePath& extensions_cookie_path, 69 const base::FilePath& extensions_cookie_path,
69 const base::FilePath& profile_path, 70 const base::FilePath& profile_path,
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
74 session_cookie_mode,
bengr 2014/08/27 04:53:25 move up with previous line
megjablon 2014/08/28 20:44:06 Done.
73 storage::SpecialStoragePolicy* special_storage_policy, 75 storage::SpecialStoragePolicy* special_storage_policy,
74 scoped_ptr<domain_reliability::DomainReliabilityMonitor> 76 scoped_ptr<domain_reliability::DomainReliabilityMonitor>
75 domain_reliability_monitor, 77 domain_reliability_monitor,
76 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, 78 const base::Callback<void(bool)>&
79 data_reduction_proxy_unavailable,
bengr 2014/08/27 04:53:25 move up with previous line
megjablon 2014/08/28 20:44:06 Done.
77 scoped_ptr<DataReductionProxyChromeConfigurator> 80 scoped_ptr<DataReductionProxyChromeConfigurator>
78 data_reduction_proxy_chrome_configurator, 81 data_reduction_proxy_chrome_configurator,
bengr 2014/08/27 04:53:25 Fix indent
megjablon 2014/08/28 20:44:07 Done.
79 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 82 scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
80 data_reduction_proxy_params); 83 data_reduction_proxy_params,
84 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
85 data_reduction_proxy_statistics_prefs);
81 86
82 // These Create*ContextGetter() functions are only exposed because the 87 // These Create*ContextGetter() functions are only exposed because the
83 // circular relationship between Profile, ProfileIOData::Handle, and the 88 // circular relationship between Profile, ProfileIOData::Handle, and the
84 // ChromeURLRequestContextGetter factories requires Profile be able to call 89 // ChromeURLRequestContextGetter factories requires Profile be able to call
85 // these functions. 90 // these functions.
86 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( 91 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter(
87 content::ProtocolHandlerMap* protocol_handlers, 92 content::ProtocolHandlerMap* protocol_handlers,
88 content::URLRequestInterceptorScopedVector request_interceptors, 93 content::URLRequestInterceptorScopedVector request_interceptors,
89 PrefService* local_state, 94 PrefService* local_state,
90 IOThread* io_thread) const; 95 IOThread* io_thread) const;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 #if defined(SPDY_PROXY_AUTH_ORIGIN) 256 #if defined(SPDY_PROXY_AUTH_ORIGIN)
252 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 257 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
253 data_reduction_proxy_params_; 258 data_reduction_proxy_params_;
254 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> 259 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats>
255 data_reduction_proxy_usage_stats_; 260 data_reduction_proxy_usage_stats_;
256 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; 261 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_;
257 mutable scoped_ptr<DataReductionProxyChromeConfigurator> 262 mutable scoped_ptr<DataReductionProxyChromeConfigurator>
258 data_reduction_proxy_chrome_configurator_; 263 data_reduction_proxy_chrome_configurator_;
259 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> 264 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
260 data_reduction_proxy_auth_request_handler_; 265 data_reduction_proxy_auth_request_handler_;
266 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
267 data_reduction_proxy_statistics_prefs_;
261 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) 268 #endif // defined(SPDY_PROXY_AUTH_ORIGIN)
262 269
263 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 270 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
264 }; 271 };
265 272
266 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 273 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698