OLD | NEW |
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_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class CookieSettings; | 23 class CookieSettings; |
24 class DesktopNotificationService; | 24 class DesktopNotificationService; |
25 class ExtensionInfoMap; | 25 class ExtensionInfoMap; |
26 class HostContentSettingsMap; | 26 class HostContentSettingsMap; |
27 class IOThread; | 27 class IOThread; |
28 class Profile; | 28 class Profile; |
29 class ProtocolHandlerRegistry; | 29 class ProtocolHandlerRegistry; |
30 class TransportSecurityPersister; | 30 class TransportSecurityPersister; |
31 | 31 |
32 namespace chrome_browser_net { | 32 namespace chrome_browser_net { |
| 33 class CacheStats; |
33 class HttpServerPropertiesManager; | 34 class HttpServerPropertiesManager; |
34 class ResourcePrefetchPredictorObserver; | 35 class ResourcePrefetchPredictorObserver; |
35 } | 36 } |
36 | 37 |
37 namespace net { | 38 namespace net { |
38 class CookieStore; | 39 class CookieStore; |
39 class FraudulentCertificateReporter; | 40 class FraudulentCertificateReporter; |
40 class HttpTransactionFactory; | 41 class HttpTransactionFactory; |
41 class ServerBoundCertService; | 42 class ServerBoundCertService; |
42 class ProxyConfigService; | 43 class ProxyConfigService; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 195 |
195 // Lazy initializes the ProfileIOData object the first time a request context | 196 // Lazy initializes the ProfileIOData object the first time a request context |
196 // is requested. The lazy logic is implemented here. The actual initialization | 197 // is requested. The lazy logic is implemented here. The actual initialization |
197 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 198 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
198 // functions have been provided to assist in common operations. | 199 // functions have been provided to assist in common operations. |
199 void LazyInitialize() const; | 200 void LazyInitialize() const; |
200 | 201 |
201 // Called when the profile is destroyed. | 202 // Called when the profile is destroyed. |
202 void ShutdownOnUIThread(); | 203 void ShutdownOnUIThread(); |
203 | 204 |
| 205 // Returns the CacheStats object to be used for this profile |
| 206 // (may be NULL for OTR profiles). |
| 207 virtual chrome_browser_net::CacheStats* GetCacheStats() const; |
| 208 |
204 BooleanPrefMember* enable_referrers() const { | 209 BooleanPrefMember* enable_referrers() const { |
205 return &enable_referrers_; | 210 return &enable_referrers_; |
206 } | 211 } |
207 | 212 |
208 ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const { | 213 ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const { |
209 return chrome_url_data_manager_backend_.get(); | 214 return chrome_url_data_manager_backend_.get(); |
210 } | 215 } |
211 | 216 |
212 // A ServerBoundCertService object is created by a derived class of | 217 // A ServerBoundCertService object is created by a derived class of |
213 // ProfileIOData, and the derived class calls this method to set the | 218 // ProfileIOData, and the derived class calls this method to set the |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 366 |
362 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 367 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
363 bool initialized_on_UI_thread_; | 368 bool initialized_on_UI_thread_; |
364 | 369 |
365 bool is_incognito_; | 370 bool is_incognito_; |
366 | 371 |
367 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 372 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
368 }; | 373 }; |
369 | 374 |
370 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 375 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |