Chromium Code Reviews| Index: chrome/browser/profiles/profile_io_data.h |
| =================================================================== |
| --- chrome/browser/profiles/profile_io_data.h (revision 147972) |
| +++ chrome/browser/profiles/profile_io_data.h (working copy) |
| @@ -30,6 +30,7 @@ |
| class TransportSecurityPersister; |
| namespace chrome_browser_net { |
| +class CacheStats; |
| class HttpServerPropertiesManager; |
| class ResourcePrefetchPredictorObserver; |
| } |
| @@ -132,7 +133,7 @@ |
| protected: |
| class AppRequestContext : public ChromeURLRequestContext { |
| public: |
| - AppRequestContext(); |
| + AppRequestContext(chrome_browser_net::CacheStats* cache_stats); |
|
willchan no longer on Chromium
2012/07/26 01:39:37
explicit
tburkard
2012/07/26 02:10:40
Done.
|
| void SetCookieStore(net::CookieStore* cookie_store); |
| void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory); |
| @@ -201,6 +202,11 @@ |
| // Called when the profile is destroyed. |
| void ShutdownOnUIThread(); |
| + // Returns the CacheStats object to be used for this profile |
| + // (may be NULL for OTR profiles). |
| + virtual chrome_browser_net::CacheStats* GetCacheStats( |
| + IOThread* io_thread) const; |
| + |
| BooleanPrefMember* enable_referrers() const { |
| return &enable_referrers_; |
| } |
| @@ -235,6 +241,10 @@ |
| return main_request_context_.get(); |
| } |
| + chrome_browser_net::CacheStats* cache_stats() const { |
| + return cache_stats_; |
| + } |
| + |
| // Destroys the ResourceContext first, to cancel any URLRequests that are |
| // using it still, before we destroy the member variables that those |
| // URLRequests may be accessing. |
| @@ -359,6 +369,8 @@ |
| mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> |
| resource_prefetch_predictor_observer_; |
| + mutable chrome_browser_net::CacheStats* cache_stats_; |
| + |
| // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| bool initialized_on_UI_thread_; |