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

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

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added suggestion from sgurun Created 6 years, 4 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)
26 namespace data_reduction_proxy {
27 class DataReductionProxyParams;
28 class DataReductionProxyUsageStats;
29 class DataReductionProxyAuthRequestHandler;
30 }
31 #endif
32
25 namespace domain_reliability { 33 namespace domain_reliability {
26 class DomainReliabilityMonitor; 34 class DomainReliabilityMonitor;
27 } // namespace domain_reliability 35 } // namespace domain_reliability
28 36
29 namespace net { 37 namespace net {
30 class FtpTransactionFactory; 38 class FtpTransactionFactory;
31 class HttpServerProperties; 39 class HttpServerProperties;
32 class HttpServerPropertiesManager; 40 class HttpServerPropertiesManager;
33 class HttpTransactionFactory; 41 class HttpTransactionFactory;
34 class SDCHManager; 42 class SDCHManager;
(...skipping 19 matching lines...) Expand all
54 const base::FilePath& media_cache_path, 62 const base::FilePath& media_cache_path,
55 int media_cache_max_size, 63 int media_cache_max_size,
56 const base::FilePath& extensions_cookie_path, 64 const base::FilePath& extensions_cookie_path,
57 const base::FilePath& profile_path, 65 const base::FilePath& profile_path,
58 const base::FilePath& infinite_cache_path, 66 const base::FilePath& infinite_cache_path,
59 chrome_browser_net::Predictor* predictor, 67 chrome_browser_net::Predictor* predictor,
60 content::CookieStoreConfig::SessionCookieMode 68 content::CookieStoreConfig::SessionCookieMode
61 session_cookie_mode, 69 session_cookie_mode,
62 quota::SpecialStoragePolicy* special_storage_policy, 70 quota::SpecialStoragePolicy* special_storage_policy,
63 scoped_ptr<domain_reliability::DomainReliabilityMonitor> 71 scoped_ptr<domain_reliability::DomainReliabilityMonitor>
64 domain_reliability_monitor); 72 domain_reliability_monitor,
73 const base::Callback<void(bool)>&
74 data_reduction_proxy_unavailable,
75 scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
76 data_reduction_proxy_params);
65 77
66 // These Create*ContextGetter() functions are only exposed because the 78 // These Create*ContextGetter() functions are only exposed because the
67 // circular relationship between Profile, ProfileIOData::Handle, and the 79 // circular relationship between Profile, ProfileIOData::Handle, and the
68 // ChromeURLRequestContextGetter factories requires Profile be able to call 80 // ChromeURLRequestContextGetter factories requires Profile be able to call
69 // these functions. 81 // these functions.
70 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( 82 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter(
71 content::ProtocolHandlerMap* protocol_handlers, 83 content::ProtocolHandlerMap* protocol_handlers,
72 content::URLRequestInterceptorScopedVector request_interceptors, 84 content::URLRequestInterceptorScopedVector request_interceptors,
73 PrefService* local_state, 85 PrefService* local_state,
74 IOThread* io_thread) const; 86 IOThread* io_thread) const;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> 236 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor>
225 domain_reliability_monitor_; 237 domain_reliability_monitor_;
226 238
227 mutable scoped_ptr<net::SdchManager> sdch_manager_; 239 mutable scoped_ptr<net::SdchManager> sdch_manager_;
228 240
229 // Parameters needed for isolated apps. 241 // Parameters needed for isolated apps.
230 base::FilePath profile_path_; 242 base::FilePath profile_path_;
231 int app_cache_max_size_; 243 int app_cache_max_size_;
232 int app_media_cache_max_size_; 244 int app_media_cache_max_size_;
233 245
246 #if defined(SPDY_PROXY_AUTH_ORIGIN)
247 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
248 data_reduction_proxy_params_;
249 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats>
250 data_reduction_proxy_usage_stats_;
251 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_;
252 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
253 data_reduction_proxy_auth_request_handler_;
254 #endif // defined(SPDY_PROXY_AUTH_ORIGIN)
255
234 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 256 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
235 }; 257 };
236 258
237 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 259 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698