Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl_io_data.h |
| =================================================================== |
| --- chrome/browser/profiles/profile_impl_io_data.h (revision 96009) |
| +++ chrome/browser/profiles/profile_impl_io_data.h (working copy) |
| @@ -12,6 +12,10 @@ |
| #include "base/memory/ref_counted.h" |
| #include "chrome/browser/profiles/profile_io_data.h" |
| +namespace chrome_browser_net { |
| +class Predictor; |
| +} |
| + |
| namespace net { |
| class HttpTransactionFactory; |
| } // namespace net |
| @@ -35,7 +39,8 @@ |
| const FilePath& media_cache_path, |
| int media_cache_max_size, |
| const FilePath& extensions_cookie_path, |
| - const FilePath& app_path); |
| + const FilePath& app_path, |
| + chrome_browser_net::Predictor* predictor); |
| base::Callback<ChromeURLDataManagerBackend*(void)> |
| GetChromeURLDataManagerBackendGetter() const; |
| @@ -50,6 +55,8 @@ |
| GetIsolatedAppRequestContextGetter( |
| const std::string& app_id) const; |
| + chrome_browser_net::Predictor* GetNetworkPredictor(); |
|
willchan no longer on Chromium
2011/08/10 07:04:08
Where is this used? Is it needed? If it's not, I s
rpetterson
2011/08/12 03:12:36
You're right. Now that ProfileImpl has a weak poin
|
| + |
| private: |
| typedef base::hash_map<std::string, |
| scoped_refptr<ChromeURLRequestContextGetter> > |
| @@ -106,6 +113,9 @@ |
| ProfileImplIOData(); |
| virtual ~ProfileImplIOData(); |
| + // The profile_io_data_ owns this predictor. |
| + chrome_browser_net::Predictor* GetNetworkPredictor(); |
| + |
| virtual void LazyInitializeInternal(ProfileParams* profile_params) const; |
| virtual scoped_refptr<ChromeURLRequestContext> InitializeAppRequestContext( |
| scoped_refptr<ChromeURLRequestContext> main_context, |
| @@ -125,6 +135,8 @@ |
| mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
| mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; |
| + mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
| + |
| // Parameters needed for isolated apps. |
| FilePath app_path_; |
| mutable bool clear_local_state_on_exit_; |