| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 content::CookieStoreConfig::SessionCookieMode | 59 content::CookieStoreConfig::SessionCookieMode |
| 60 session_cookie_mode, | 60 session_cookie_mode, |
| 61 quota::SpecialStoragePolicy* special_storage_policy); | 61 quota::SpecialStoragePolicy* special_storage_policy); |
| 62 | 62 |
| 63 // These Create*ContextGetter() functions are only exposed because the | 63 // These Create*ContextGetter() functions are only exposed because the |
| 64 // circular relationship between Profile, ProfileIOData::Handle, and the | 64 // circular relationship between Profile, ProfileIOData::Handle, and the |
| 65 // ChromeURLRequestContextGetter factories requires Profile be able to call | 65 // ChromeURLRequestContextGetter factories requires Profile be able to call |
| 66 // these functions. | 66 // these functions. |
| 67 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 67 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
| 68 content::ProtocolHandlerMap* protocol_handlers, | 68 content::ProtocolHandlerMap* protocol_handlers, |
| 69 content::ProtocolHandlerScopedVector protocol_interceptors, | 69 content::URLRequestInterceptorScopedVector request_interceptors, |
| 70 PrefService* local_state, | 70 PrefService* local_state, |
| 71 IOThread* io_thread) const; | 71 IOThread* io_thread) const; |
| 72 scoped_refptr<ChromeURLRequestContextGetter> | 72 scoped_refptr<ChromeURLRequestContextGetter> |
| 73 CreateIsolatedAppRequestContextGetter( | 73 CreateIsolatedAppRequestContextGetter( |
| 74 const base::FilePath& partition_path, | 74 const base::FilePath& partition_path, |
| 75 bool in_memory, | 75 bool in_memory, |
| 76 content::ProtocolHandlerMap* protocol_handlers, | 76 content::ProtocolHandlerMap* protocol_handlers, |
| 77 content::ProtocolHandlerScopedVector protocol_interceptors) const; | 77 content::URLRequestInterceptorScopedVector |
| 78 request_interceptors) const; |
| 78 | 79 |
| 79 content::ResourceContext* GetResourceContext() const; | 80 content::ResourceContext* GetResourceContext() const; |
| 80 // GetResourceContextNoInit() does not call LazyInitialize() so it can be | 81 // GetResourceContextNoInit() does not call LazyInitialize() so it can be |
| 81 // safely be used during initialization. | 82 // safely be used during initialization. |
| 82 content::ResourceContext* GetResourceContextNoInit() const; | 83 content::ResourceContext* GetResourceContextNoInit() const; |
| 83 scoped_refptr<ChromeURLRequestContextGetter> | 84 scoped_refptr<ChromeURLRequestContextGetter> |
| 84 GetMediaRequestContextGetter() const; | 85 GetMediaRequestContextGetter() const; |
| 85 scoped_refptr<ChromeURLRequestContextGetter> | 86 scoped_refptr<ChromeURLRequestContextGetter> |
| 86 GetExtensionsRequestContextGetter() const; | 87 GetExtensionsRequestContextGetter() const; |
| 87 scoped_refptr<ChromeURLRequestContextGetter> | 88 scoped_refptr<ChromeURLRequestContextGetter> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; | 161 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; |
| 161 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; | 162 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 ProfileImplIOData(); | 165 ProfileImplIOData(); |
| 165 virtual ~ProfileImplIOData(); | 166 virtual ~ProfileImplIOData(); |
| 166 | 167 |
| 167 virtual void InitializeInternal( | 168 virtual void InitializeInternal( |
| 168 ProfileParams* profile_params, | 169 ProfileParams* profile_params, |
| 169 content::ProtocolHandlerMap* protocol_handlers, | 170 content::ProtocolHandlerMap* protocol_handlers, |
| 170 content::ProtocolHandlerScopedVector protocol_interceptors) | 171 content::URLRequestInterceptorScopedVector request_interceptors) |
| 171 const OVERRIDE; | 172 const OVERRIDE; |
| 172 virtual void InitializeExtensionsRequestContext( | 173 virtual void InitializeExtensionsRequestContext( |
| 173 ProfileParams* profile_params) const OVERRIDE; | 174 ProfileParams* profile_params) const OVERRIDE; |
| 174 virtual ChromeURLRequestContext* InitializeAppRequestContext( | 175 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
| 175 ChromeURLRequestContext* main_context, | 176 ChromeURLRequestContext* main_context, |
| 176 const StoragePartitionDescriptor& partition_descriptor, | 177 const StoragePartitionDescriptor& partition_descriptor, |
| 177 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 178 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 178 protocol_handler_interceptor, | 179 protocol_handler_interceptor, |
| 179 content::ProtocolHandlerMap* protocol_handlers, | 180 content::ProtocolHandlerMap* protocol_handlers, |
| 180 content::ProtocolHandlerScopedVector protocol_interceptors) | 181 content::URLRequestInterceptorScopedVector request_interceptors) |
| 181 const OVERRIDE; | 182 const OVERRIDE; |
| 182 virtual ChromeURLRequestContext* InitializeMediaRequestContext( | 183 virtual ChromeURLRequestContext* InitializeMediaRequestContext( |
| 183 ChromeURLRequestContext* original_context, | 184 ChromeURLRequestContext* original_context, |
| 184 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; | 185 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; |
| 185 virtual ChromeURLRequestContext* | 186 virtual ChromeURLRequestContext* |
| 186 AcquireMediaRequestContext() const OVERRIDE; | 187 AcquireMediaRequestContext() const OVERRIDE; |
| 187 virtual ChromeURLRequestContext* AcquireIsolatedAppRequestContext( | 188 virtual ChromeURLRequestContext* AcquireIsolatedAppRequestContext( |
| 188 ChromeURLRequestContext* main_context, | 189 ChromeURLRequestContext* main_context, |
| 189 const StoragePartitionDescriptor& partition_descriptor, | 190 const StoragePartitionDescriptor& partition_descriptor, |
| 190 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 191 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 191 protocol_handler_interceptor, | 192 protocol_handler_interceptor, |
| 192 content::ProtocolHandlerMap* protocol_handlers, | 193 content::ProtocolHandlerMap* protocol_handlers, |
| 193 content::ProtocolHandlerScopedVector protocol_interceptors) | 194 content::URLRequestInterceptorScopedVector request_interceptors) |
| 194 const OVERRIDE; | 195 const OVERRIDE; |
| 195 virtual ChromeURLRequestContext* | 196 virtual ChromeURLRequestContext* |
| 196 AcquireIsolatedMediaRequestContext( | 197 AcquireIsolatedMediaRequestContext( |
| 197 ChromeURLRequestContext* app_context, | 198 ChromeURLRequestContext* app_context, |
| 198 const StoragePartitionDescriptor& partition_descriptor) | 199 const StoragePartitionDescriptor& partition_descriptor) |
| 199 const OVERRIDE; | 200 const OVERRIDE; |
| 200 | 201 |
| 201 // Deletes all network related data since |time|. It deletes transport | 202 // Deletes all network related data since |time|. It deletes transport |
| 202 // security state since |time| and also deletes HttpServerProperties data. | 203 // security state since |time| and also deletes HttpServerProperties data. |
| 203 // Works asynchronously, however if the |completion| callback is non-null, | 204 // Works asynchronously, however if the |completion| callback is non-null, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 232 | 233 |
| 233 // Parameters needed for isolated apps. | 234 // Parameters needed for isolated apps. |
| 234 base::FilePath profile_path_; | 235 base::FilePath profile_path_; |
| 235 int app_cache_max_size_; | 236 int app_cache_max_size_; |
| 236 int app_media_cache_max_size_; | 237 int app_media_cache_max_size_; |
| 237 | 238 |
| 238 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 239 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 242 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |