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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "chrome/browser/profiles/profile_io_data.h" | 13 #include "chrome/browser/profiles/profile_io_data.h" |
14 | 14 |
15 namespace chrome_browser_net { | 15 namespace chrome_browser_net { |
16 class Predictor; | 16 class Predictor; |
17 } // namespace chrome_browser_net | 17 } // namespace chrome_browser_net |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 class HttpServerProperties; | 20 class HttpServerProperties; |
21 class HttpTransactionFactory; | 21 class HttpTransactionFactory; |
22 } // namespace net | 22 } // namespace net |
23 | 23 |
| 24 namespace predictors { |
| 25 class ResourcePrefetchPredictor; |
| 26 } // namespace predictors |
| 27 |
24 class ProfileImplIOData : public ProfileIOData { | 28 class ProfileImplIOData : public ProfileIOData { |
25 public: | 29 public: |
26 class Handle { | 30 class Handle { |
27 public: | 31 public: |
28 explicit Handle(Profile* profile); | 32 explicit Handle(Profile* profile); |
29 ~Handle(); | 33 ~Handle(); |
30 | 34 |
31 bool HasMainRequestContext() const { | 35 bool HasMainRequestContext() const { |
32 return main_request_context_getter_ != NULL; | 36 return main_request_context_getter_ != NULL; |
33 } | 37 } |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void ClearNetworkingHistorySinceOnIOThread(base::Time time); | 143 void ClearNetworkingHistorySinceOnIOThread(base::Time time); |
140 | 144 |
141 // Lazy initialization params. | 145 // Lazy initialization params. |
142 mutable scoped_ptr<LazyParams> lazy_params_; | 146 mutable scoped_ptr<LazyParams> lazy_params_; |
143 | 147 |
144 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 148 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
145 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; | 149 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; |
146 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 150 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
147 | 151 |
148 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 152 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
| 153 mutable scoped_refptr<predictors::ResourcePrefetchPredictor> |
| 154 resource_prefetch_predictor_; |
149 | 155 |
150 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; | 156 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; |
151 | 157 |
152 // Parameters needed for isolated apps. | 158 // Parameters needed for isolated apps. |
153 FilePath app_path_; | 159 FilePath app_path_; |
154 mutable bool clear_local_state_on_exit_; | 160 mutable bool clear_local_state_on_exit_; |
155 | 161 |
156 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 162 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
157 }; | 163 }; |
158 | 164 |
159 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 165 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |