| 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/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // circular relationship between Profile, ProfileIOData::Handle, and the | 52 // circular relationship between Profile, ProfileIOData::Handle, and the |
| 53 // ChromeURLRequestContextGetter factories requires Profile be able to call | 53 // ChromeURLRequestContextGetter factories requires Profile be able to call |
| 54 // these functions. | 54 // these functions. |
| 55 scoped_refptr<ChromeURLRequestContextGetter> | 55 scoped_refptr<ChromeURLRequestContextGetter> |
| 56 CreateMainRequestContextGetter( | 56 CreateMainRequestContextGetter( |
| 57 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 57 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 58 blob_protocol_handler, | 58 blob_protocol_handler, |
| 59 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 59 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 60 file_system_protocol_handler, | 60 file_system_protocol_handler, |
| 61 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 61 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 62 developer_protocol_handler, | |
| 63 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 64 chrome_protocol_handler, | 62 chrome_protocol_handler, |
| 65 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 63 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 66 chrome_devtools_protocol_handler, | 64 chrome_devtools_protocol_handler, |
| 67 PrefService* local_state, | 65 PrefService* local_state, |
| 68 IOThread* io_thread) const; | 66 IOThread* io_thread) const; |
| 69 scoped_refptr<ChromeURLRequestContextGetter> | 67 scoped_refptr<ChromeURLRequestContextGetter> |
| 70 CreateIsolatedAppRequestContextGetter( | 68 CreateIsolatedAppRequestContextGetter( |
| 71 const base::FilePath& partition_path, | 69 const base::FilePath& partition_path, |
| 72 bool in_memory, | 70 bool in_memory, |
| 73 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 71 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 74 blob_protocol_handler, | 72 blob_protocol_handler, |
| 75 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 73 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 76 file_system_protocol_handler, | 74 file_system_protocol_handler, |
| 77 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 75 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 78 developer_protocol_handler, | |
| 79 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 80 chrome_protocol_handler, | 76 chrome_protocol_handler, |
| 81 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 77 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 82 chrome_devtools_protocol_handler) const; | 78 chrome_devtools_protocol_handler) const; |
| 83 | 79 |
| 84 content::ResourceContext* GetResourceContext() const; | 80 content::ResourceContext* GetResourceContext() const; |
| 85 // GetResourceContextNoInit() does not call LazyInitialize() so it can be | 81 // GetResourceContextNoInit() does not call LazyInitialize() so it can be |
| 86 // safely be used during initialization. | 82 // safely be used during initialization. |
| 87 content::ResourceContext* GetResourceContextNoInit() const; | 83 content::ResourceContext* GetResourceContextNoInit() const; |
| 88 scoped_refptr<ChromeURLRequestContextGetter> | 84 scoped_refptr<ChromeURLRequestContextGetter> |
| 89 GetMediaRequestContextGetter() const; | 85 GetMediaRequestContextGetter() const; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 ProfileImplIOData(); | 160 ProfileImplIOData(); |
| 165 virtual ~ProfileImplIOData(); | 161 virtual ~ProfileImplIOData(); |
| 166 | 162 |
| 167 virtual void InitializeInternal( | 163 virtual void InitializeInternal( |
| 168 ProfileParams* profile_params, | 164 ProfileParams* profile_params, |
| 169 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 165 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 170 blob_protocol_handler, | 166 blob_protocol_handler, |
| 171 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 167 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 172 file_system_protocol_handler, | 168 file_system_protocol_handler, |
| 173 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 169 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 174 developer_protocol_handler, | |
| 175 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 176 chrome_protocol_handler, | 170 chrome_protocol_handler, |
| 177 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 171 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 178 chrome_devtools_protocol_handler) const OVERRIDE; | 172 chrome_devtools_protocol_handler) const OVERRIDE; |
| 179 virtual void InitializeExtensionsRequestContext( | 173 virtual void InitializeExtensionsRequestContext( |
| 180 ProfileParams* profile_params) const OVERRIDE; | 174 ProfileParams* profile_params) const OVERRIDE; |
| 181 virtual ChromeURLRequestContext* InitializeAppRequestContext( | 175 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
| 182 ChromeURLRequestContext* main_context, | 176 ChromeURLRequestContext* main_context, |
| 183 const StoragePartitionDescriptor& partition_descriptor, | 177 const StoragePartitionDescriptor& partition_descriptor, |
| 184 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 178 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 185 protocol_handler_interceptor, | 179 protocol_handler_interceptor, |
| 186 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 180 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 187 blob_protocol_handler, | 181 blob_protocol_handler, |
| 188 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 182 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 189 file_system_protocol_handler, | 183 file_system_protocol_handler, |
| 190 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 184 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 191 developer_protocol_handler, | |
| 192 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 193 chrome_protocol_handler, | 185 chrome_protocol_handler, |
| 194 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 186 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 195 chrome_devtools_protocol_handler) const OVERRIDE; | 187 chrome_devtools_protocol_handler) const OVERRIDE; |
| 196 virtual ChromeURLRequestContext* InitializeMediaRequestContext( | 188 virtual ChromeURLRequestContext* InitializeMediaRequestContext( |
| 197 ChromeURLRequestContext* original_context, | 189 ChromeURLRequestContext* original_context, |
| 198 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; | 190 const StoragePartitionDescriptor& partition_descriptor) const OVERRIDE; |
| 199 virtual ChromeURLRequestContext* | 191 virtual ChromeURLRequestContext* |
| 200 AcquireMediaRequestContext() const OVERRIDE; | 192 AcquireMediaRequestContext() const OVERRIDE; |
| 201 virtual ChromeURLRequestContext* | 193 virtual ChromeURLRequestContext* |
| 202 AcquireIsolatedAppRequestContext( | 194 AcquireIsolatedAppRequestContext( |
| 203 ChromeURLRequestContext* main_context, | 195 ChromeURLRequestContext* main_context, |
| 204 const StoragePartitionDescriptor& partition_descriptor, | 196 const StoragePartitionDescriptor& partition_descriptor, |
| 205 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 197 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 206 protocol_handler_interceptor, | 198 protocol_handler_interceptor, |
| 207 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 199 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 208 blob_protocol_handler, | 200 blob_protocol_handler, |
| 209 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 201 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 210 file_system_protocol_handler, | 202 file_system_protocol_handler, |
| 211 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 203 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 212 developer_protocol_handler, | |
| 213 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 214 chrome_protocol_handler, | 204 chrome_protocol_handler, |
| 215 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 205 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 216 chrome_devtools_protocol_handler) const OVERRIDE; | 206 chrome_devtools_protocol_handler) const OVERRIDE; |
| 217 virtual ChromeURLRequestContext* | 207 virtual ChromeURLRequestContext* |
| 218 AcquireIsolatedMediaRequestContext( | 208 AcquireIsolatedMediaRequestContext( |
| 219 ChromeURLRequestContext* app_context, | 209 ChromeURLRequestContext* app_context, |
| 220 const StoragePartitionDescriptor& partition_descriptor) | 210 const StoragePartitionDescriptor& partition_descriptor) |
| 221 const OVERRIDE; | 211 const OVERRIDE; |
| 222 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( | 212 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( |
| 223 IOThread::Globals* io_thread_globals) const OVERRIDE; | 213 IOThread::Globals* io_thread_globals) const OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 249 | 239 |
| 250 // Parameters needed for isolated apps. | 240 // Parameters needed for isolated apps. |
| 251 base::FilePath profile_path_; | 241 base::FilePath profile_path_; |
| 252 int app_cache_max_size_; | 242 int app_cache_max_size_; |
| 253 int app_media_cache_max_size_; | 243 int app_media_cache_max_size_; |
| 254 | 244 |
| 255 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 245 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 256 }; | 246 }; |
| 257 | 247 |
| 258 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 248 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |