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 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/macros.h" | 10 #include "base/macros.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 "components/prefs/pref_store.h" | 15 #include "components/prefs/pref_store.h" |
16 #include "content/public/browser/cookie_store_factory.h" | 16 #include "content/public/browser/cookie_store_factory.h" |
17 | 17 |
18 namespace chrome_browser_net { | 18 namespace chrome_browser_net { |
19 class Predictor; | 19 class Predictor; |
20 } // namespace chrome_browser_net | 20 } // namespace chrome_browser_net |
21 | 21 |
22 namespace domain_reliability { | 22 namespace domain_reliability { |
23 class DomainReliabilityMonitor; | 23 class DomainReliabilityMonitor; |
24 } // namespace domain_reliability | 24 } // namespace domain_reliability |
25 | 25 |
26 namespace net { | 26 namespace net { |
| 27 class ChannelIDService; |
27 class CookieStore; | 28 class CookieStore; |
28 class HttpServerPropertiesManager; | 29 class HttpServerPropertiesManager; |
29 } // namespace net | 30 } // namespace net |
30 | 31 |
31 namespace storage { | 32 namespace storage { |
32 class SpecialStoragePolicy; | 33 class SpecialStoragePolicy; |
33 } // namespace storage | 34 } // namespace storage |
34 | 35 |
35 class ProfileImplIOData : public ProfileIOData { | 36 class ProfileImplIOData : public ProfileIOData { |
36 public: | 37 public: |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 net::URLRequestContext* main_context, | 186 net::URLRequestContext* main_context, |
186 const StoragePartitionDescriptor& partition_descriptor, | 187 const StoragePartitionDescriptor& partition_descriptor, |
187 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 188 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
188 protocol_handler_interceptor, | 189 protocol_handler_interceptor, |
189 content::ProtocolHandlerMap* protocol_handlers, | 190 content::ProtocolHandlerMap* protocol_handlers, |
190 content::URLRequestInterceptorScopedVector request_interceptors) | 191 content::URLRequestInterceptorScopedVector request_interceptors) |
191 const override; | 192 const override; |
192 net::URLRequestContext* AcquireIsolatedMediaRequestContext( | 193 net::URLRequestContext* AcquireIsolatedMediaRequestContext( |
193 net::URLRequestContext* app_context, | 194 net::URLRequestContext* app_context, |
194 const StoragePartitionDescriptor& partition_descriptor) const override; | 195 const StoragePartitionDescriptor& partition_descriptor) const override; |
| 196 std::unique_ptr<net::HttpServerProperties> GetHttpServerProperties() |
| 197 const override; |
| 198 void GetCookieAndChannelIDStores( |
| 199 std::unique_ptr<net::CookieStore>* cookie_store, |
| 200 std::unique_ptr<net::ChannelIDService>* channel_id_service) |
| 201 const override; |
| 202 bool UseNetworkQualityEstimator() const override; |
| 203 std::unique_ptr<net::HttpCache::BackendFactory> GetCacheBackendFactory() const
override; |
195 chrome_browser_net::Predictor* GetPredictor() override; | 204 chrome_browser_net::Predictor* GetPredictor() override; |
196 | 205 |
197 std::unique_ptr<net::ReportingService> MaybeCreateReportingService( | 206 std::unique_ptr<net::ReportingService> MaybeCreateReportingService( |
198 net::URLRequestContext* url_request_context) const; | 207 net::URLRequestContext* url_request_context) const; |
199 | 208 |
200 // Deletes all network related data since |time|. It deletes transport | 209 // Deletes all network related data since |time|. It deletes transport |
201 // security state since |time| and also deletes HttpServerProperties data. | 210 // security state since |time| and also deletes HttpServerProperties data. |
202 // Works asynchronously, however if the |completion| callback is non-null, | 211 // Works asynchronously, however if the |completion| callback is non-null, |
203 // it will be posted on the UI thread once the removal process completes. | 212 // it will be posted on the UI thread once the removal process completes. |
204 void ClearNetworkingHistorySinceOnIOThread(base::Time time, | 213 void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
(...skipping 18 matching lines...) Expand all Loading... |
223 | 232 |
224 // Parameters needed for isolated apps. | 233 // Parameters needed for isolated apps. |
225 base::FilePath profile_path_; | 234 base::FilePath profile_path_; |
226 int app_cache_max_size_; | 235 int app_cache_max_size_; |
227 int app_media_cache_max_size_; | 236 int app_media_cache_max_size_; |
228 | 237 |
229 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 238 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
230 }; | 239 }; |
231 | 240 |
232 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 241 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |