| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 session_cookie_mode, | 55 session_cookie_mode, |
| 56 quota::SpecialStoragePolicy* special_storage_policy); | 56 quota::SpecialStoragePolicy* special_storage_policy); |
| 57 | 57 |
| 58 // These Create*ContextGetter() functions are only exposed because the | 58 // These Create*ContextGetter() functions are only exposed because the |
| 59 // circular relationship between Profile, ProfileIOData::Handle, and the | 59 // circular relationship between Profile, ProfileIOData::Handle, and the |
| 60 // ChromeURLRequestContextGetter factories requires Profile be able to call | 60 // ChromeURLRequestContextGetter factories requires Profile be able to call |
| 61 // these functions. | 61 // these functions. |
| 62 scoped_refptr<ChromeURLRequestContextGetter> | 62 scoped_refptr<ChromeURLRequestContextGetter> |
| 63 CreateMainRequestContextGetter( | 63 CreateMainRequestContextGetter( |
| 64 content::ProtocolHandlerMap* protocol_handlers, | 64 content::ProtocolHandlerMap* protocol_handlers, |
| 65 content::ProtocolHandlerScopedVector protocol_interceptors, |
| 65 PrefService* local_state, | 66 PrefService* local_state, |
| 66 IOThread* io_thread) const; | 67 IOThread* io_thread) const; |
| 67 scoped_refptr<ChromeURLRequestContextGetter> | 68 scoped_refptr<ChromeURLRequestContextGetter> |
| 68 CreateIsolatedAppRequestContextGetter( | 69 CreateIsolatedAppRequestContextGetter( |
| 69 const base::FilePath& partition_path, | 70 const base::FilePath& partition_path, |
| 70 bool in_memory, | 71 bool in_memory, |
| 71 content::ProtocolHandlerMap* protocol_handlers) const; | 72 content::ProtocolHandlerMap* protocol_handlers, |
| 73 content::ProtocolHandlerScopedVector protocol_interceptors) const; |
| 72 | 74 |
| 73 content::ResourceContext* GetResourceContext() const; | 75 content::ResourceContext* GetResourceContext() const; |
| 74 // GetResourceContextNoInit() does not call LazyInitialize() so it can be | 76 // GetResourceContextNoInit() does not call LazyInitialize() so it can be |
| 75 // safely be used during initialization. | 77 // safely be used during initialization. |
| 76 content::ResourceContext* GetResourceContextNoInit() const; | 78 content::ResourceContext* GetResourceContextNoInit() const; |
| 77 scoped_refptr<ChromeURLRequestContextGetter> | 79 scoped_refptr<ChromeURLRequestContextGetter> |
| 78 GetMediaRequestContextGetter() const; | 80 GetMediaRequestContextGetter() const; |
| 79 scoped_refptr<ChromeURLRequestContextGetter> | 81 scoped_refptr<ChromeURLRequestContextGetter> |
| 80 GetExtensionsRequestContextGetter() const; | 82 GetExtensionsRequestContextGetter() const; |
| 81 scoped_refptr<ChromeURLRequestContextGetter> | 83 scoped_refptr<ChromeURLRequestContextGetter> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 base::FilePath infinite_cache_path; | 147 base::FilePath infinite_cache_path; |
| 146 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; | 148 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; |
| 147 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; | 149 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 ProfileImplIOData(); | 152 ProfileImplIOData(); |
| 151 virtual ~ProfileImplIOData(); | 153 virtual ~ProfileImplIOData(); |
| 152 | 154 |
| 153 virtual void InitializeInternal( | 155 virtual void InitializeInternal( |
| 154 ProfileParams* profile_params, | 156 ProfileParams* profile_params, |
| 155 content::ProtocolHandlerMap* protocol_handlers) const OVERRIDE; | 157 content::ProtocolHandlerMap* protocol_handlers, |
| 158 content::ProtocolHandlerScopedVector protocol_interceptors) |
| 159 const OVERRIDE; |
| 156 virtual void InitializeExtensionsRequestContext( | 160 virtual void InitializeExtensionsRequestContext( |
| 157 ProfileParams* profile_params) const OVERRIDE; | 161 ProfileParams* profile_params) const OVERRIDE; |
| 158 virtual ChromeURLRequestContext* InitializeAppRequestContext( | 162 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
| 159 ChromeURLRequestContext* main_context, | 163 ChromeURLRequestContext* main_context, |
| 160 const StoragePartitionDescriptor& partition_descriptor, | 164 const StoragePartitionDescriptor& partition_descriptor, |
| 161 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 165 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 162 protocol_handler_interceptor, | 166 protocol_handler_interceptor, |
| 163 content::ProtocolHandlerMap* protocol_handlers) const OVERRIDE; | 167 content::ProtocolHandlerMap* protocol_handlers, |
| 168 content::ProtocolHandlerScopedVector protocol_interceptors) |
| 169 const OVERRIDE; |
| 164 virtual ChromeURLRequestContext* InitializeMediaRequestContext( | 170 virtual ChromeURLRequestContext* InitializeMediaRequestContext( |
| 165 ChromeURLRequestContext* original_context, | 171 ChromeURLRequestContext* original_context, |
| 166 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; | 172 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; |
| 167 virtual ChromeURLRequestContext* | 173 virtual ChromeURLRequestContext* |
| 168 AcquireMediaRequestContext() const OVERRIDE; | 174 AcquireMediaRequestContext() const OVERRIDE; |
| 169 virtual ChromeURLRequestContext* | 175 virtual ChromeURLRequestContext* |
| 170 AcquireIsolatedAppRequestContext( | 176 AcquireIsolatedAppRequestContext( |
| 171 ChromeURLRequestContext* main_context, | 177 ChromeURLRequestContext* main_context, |
| 172 const StoragePartitionDescriptor& partition_descriptor, | 178 const StoragePartitionDescriptor& partition_descriptor, |
| 173 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 179 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 174 protocol_handler_interceptor, | 180 protocol_handler_interceptor, |
| 175 content::ProtocolHandlerMap* protocol_handlers) const OVERRIDE; | 181 content::ProtocolHandlerMap* protocol_handlers, |
| 182 content::ProtocolHandlerScopedVector protocol_interceptors) |
| 183 const OVERRIDE; |
| 176 virtual ChromeURLRequestContext* | 184 virtual ChromeURLRequestContext* |
| 177 AcquireIsolatedMediaRequestContext( | 185 AcquireIsolatedMediaRequestContext( |
| 178 ChromeURLRequestContext* app_context, | 186 ChromeURLRequestContext* app_context, |
| 179 const StoragePartitionDescriptor& partition_descriptor) | 187 const StoragePartitionDescriptor& partition_descriptor) |
| 180 const OVERRIDE; | 188 const OVERRIDE; |
| 181 | 189 |
| 182 // Deletes all network related data since |time|. It deletes transport | 190 // Deletes all network related data since |time|. It deletes transport |
| 183 // security state since |time| and also deletes HttpServerProperties data. | 191 // security state since |time| and also deletes HttpServerProperties data. |
| 184 // Works asynchronously, however if the |completion| callback is non-null, | 192 // Works asynchronously, however if the |completion| callback is non-null, |
| 185 // it will be posted on the UI thread once the removal process completes. | 193 // it will be posted on the UI thread once the removal process completes. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 206 | 214 |
| 207 // Parameters needed for isolated apps. | 215 // Parameters needed for isolated apps. |
| 208 base::FilePath profile_path_; | 216 base::FilePath profile_path_; |
| 209 int app_cache_max_size_; | 217 int app_cache_max_size_; |
| 210 int app_media_cache_max_size_; | 218 int app_media_cache_max_size_; |
| 211 | 219 |
| 212 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 220 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 213 }; | 221 }; |
| 214 | 222 |
| 215 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 223 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |