| 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_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class ChromeAppCacheService; | 24 class ChromeAppCacheService; |
| 25 class ChromeBlobStorageContext; | 25 class ChromeBlobStorageContext; |
| 26 class CookieSettings; | 26 class CookieSettings; |
| 27 class DesktopNotificationService; | 27 class DesktopNotificationService; |
| 28 class ExtensionInfoMap; | 28 class ExtensionInfoMap; |
| 29 class HostContentSettingsMap; | 29 class HostContentSettingsMap; |
| 30 class IOThread; | 30 class IOThread; |
| 31 class Profile; | 31 class Profile; |
| 32 class ProtocolHandlerRegistry; | 32 class ProtocolHandlerRegistry; |
| 33 class TransportSecurityPersister; | 33 class TransportSecurityPersister; |
| 34 class WebKitContext; |
| 34 | 35 |
| 35 namespace fileapi { | 36 namespace fileapi { |
| 36 class FileSystemContext; | 37 class FileSystemContext; |
| 37 } // namespace fileapi | 38 } // namespace fileapi |
| 38 | 39 |
| 39 namespace media_stream { | 40 namespace media_stream { |
| 40 class MediaStreamManager; | 41 class MediaStreamManager; |
| 41 } // namespace media_stream | 42 } // namespace media_stream |
| 42 | 43 |
| 43 namespace net { | 44 namespace net { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 AudioManager* audio_manager; | 151 AudioManager* audio_manager; |
| 151 scoped_refptr<HostContentSettingsMap> host_content_settings_map; | 152 scoped_refptr<HostContentSettingsMap> host_content_settings_map; |
| 152 scoped_refptr<CookieSettings> cookie_settings; | 153 scoped_refptr<CookieSettings> cookie_settings; |
| 153 scoped_refptr<content::HostZoomMap> host_zoom_map; | 154 scoped_refptr<content::HostZoomMap> host_zoom_map; |
| 154 scoped_refptr<net::SSLConfigService> ssl_config_service; | 155 scoped_refptr<net::SSLConfigService> ssl_config_service; |
| 155 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; | 156 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; |
| 156 scoped_refptr<webkit_database::DatabaseTracker> database_tracker; | 157 scoped_refptr<webkit_database::DatabaseTracker> database_tracker; |
| 157 scoped_refptr<ChromeAppCacheService> appcache_service; | 158 scoped_refptr<ChromeAppCacheService> appcache_service; |
| 158 scoped_refptr<ChromeBlobStorageContext> blob_storage_context; | 159 scoped_refptr<ChromeBlobStorageContext> blob_storage_context; |
| 159 scoped_refptr<fileapi::FileSystemContext> file_system_context; | 160 scoped_refptr<fileapi::FileSystemContext> file_system_context; |
| 161 scoped_refptr<WebKitContext> webkit_context; |
| 160 scoped_refptr<quota::QuotaManager> quota_manager; | 162 scoped_refptr<quota::QuotaManager> quota_manager; |
| 161 scoped_refptr<ExtensionInfoMap> extension_info_map; | 163 scoped_refptr<ExtensionInfoMap> extension_info_map; |
| 162 DesktopNotificationService* notification_service; | 164 DesktopNotificationService* notification_service; |
| 163 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; | 165 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; |
| 164 // We need to initialize the ProxyConfigService from the UI thread | 166 // We need to initialize the ProxyConfigService from the UI thread |
| 165 // because on linux it relies on initializing things through gconf, | 167 // because on linux it relies on initializing things through gconf, |
| 166 // and needs to be on the main thread. | 168 // and needs to be on the main thread. |
| 167 scoped_ptr<net::ProxyConfigService> proxy_config_service; | 169 scoped_ptr<net::ProxyConfigService> proxy_config_service; |
| 168 // The profile this struct was populated from. It's passed as a void* to | 170 // The profile this struct was populated from. It's passed as a void* to |
| 169 // ensure it's not accidently used on the IO thread. Before using it on the | 171 // ensure it's not accidently used on the IO thread. Before using it on the |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 230 |
| 229 private: | 231 private: |
| 230 friend class ProfileIOData; | 232 friend class ProfileIOData; |
| 231 | 233 |
| 232 // ResourceContext implementation: | 234 // ResourceContext implementation: |
| 233 virtual net::HostResolver* GetHostResolver() OVERRIDE; | 235 virtual net::HostResolver* GetHostResolver() OVERRIDE; |
| 234 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | 236 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; |
| 235 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 237 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
| 236 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 238 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| 237 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 239 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
| 240 virtual WebKitContext* GetWebKitContext() OVERRIDE; |
| 238 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; | 241 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; |
| 239 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 242 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
| 240 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE; | 243 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE; |
| 241 virtual MediaObserver* GetMediaObserver() OVERRIDE; | 244 virtual MediaObserver* GetMediaObserver() OVERRIDE; |
| 242 virtual media_stream::MediaStreamManager* GetMediaStreamManager() OVERRIDE; | 245 virtual media_stream::MediaStreamManager* GetMediaStreamManager() OVERRIDE; |
| 243 virtual AudioManager* GetAudioManager() OVERRIDE; | 246 virtual AudioManager* GetAudioManager() OVERRIDE; |
| 244 | 247 |
| 245 void EnsureInitialized(); | 248 void EnsureInitialized(); |
| 246 | 249 |
| 247 ProfileIOData* const io_data_; | 250 ProfileIOData* const io_data_; |
| 248 | 251 |
| 249 net::HostResolver* host_resolver_; | 252 net::HostResolver* host_resolver_; |
| 250 net::URLRequestContext* request_context_; | 253 net::URLRequestContext* request_context_; |
| 251 ChromeAppCacheService* appcache_service_; | 254 ChromeAppCacheService* appcache_service_; |
| 252 webkit_database::DatabaseTracker* database_tracker_; | 255 webkit_database::DatabaseTracker* database_tracker_; |
| 253 fileapi::FileSystemContext* file_system_context_; | 256 fileapi::FileSystemContext* file_system_context_; |
| 257 WebKitContext* webkit_context_; |
| 254 ChromeBlobStorageContext* blob_storage_context_; | 258 ChromeBlobStorageContext* blob_storage_context_; |
| 255 quota::QuotaManager* quota_manager_; | 259 quota::QuotaManager* quota_manager_; |
| 256 content::HostZoomMap* host_zoom_map_; | 260 content::HostZoomMap* host_zoom_map_; |
| 257 MediaObserver* media_observer_; | 261 MediaObserver* media_observer_; |
| 258 media_stream::MediaStreamManager* media_stream_manager_; | 262 media_stream::MediaStreamManager* media_stream_manager_; |
| 259 AudioManager* audio_manager_; | 263 AudioManager* audio_manager_; |
| 260 }; | 264 }; |
| 261 | 265 |
| 262 typedef base::hash_map<std::string, scoped_refptr<ChromeURLRequestContext> > | 266 typedef base::hash_map<std::string, scoped_refptr<ChromeURLRequestContext> > |
| 263 AppRequestContextMap; | 267 AppRequestContextMap; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 fraudulent_certificate_reporter_; | 313 fraudulent_certificate_reporter_; |
| 310 mutable scoped_ptr<net::ProxyService> proxy_service_; | 314 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 311 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 315 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 312 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; | 316 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; |
| 313 | 317 |
| 314 // Pointed to by ResourceContext. | 318 // Pointed to by ResourceContext. |
| 315 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 319 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 316 mutable scoped_refptr<ChromeAppCacheService> appcache_service_; | 320 mutable scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 317 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 321 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 318 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 322 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
| 323 mutable scoped_refptr<WebKitContext> webkit_context_; |
| 319 mutable scoped_refptr<quota::QuotaManager> quota_manager_; | 324 mutable scoped_refptr<quota::QuotaManager> quota_manager_; |
| 320 mutable scoped_refptr<content::HostZoomMap> host_zoom_map_; | 325 mutable scoped_refptr<content::HostZoomMap> host_zoom_map_; |
| 321 mutable scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; | 326 mutable scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; |
| 322 | 327 |
| 323 // TODO(willchan): Remove from ResourceContext. | 328 // TODO(willchan): Remove from ResourceContext. |
| 324 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; | 329 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; |
| 325 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 330 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 326 mutable scoped_refptr<CookieSettings> cookie_settings_; | 331 mutable scoped_refptr<CookieSettings> cookie_settings_; |
| 327 mutable DesktopNotificationService* notification_service_; | 332 mutable DesktopNotificationService* notification_service_; |
| 328 | 333 |
| 329 mutable ResourceContext resource_context_; | 334 mutable ResourceContext resource_context_; |
| 330 | 335 |
| 331 mutable scoped_ptr<TransportSecurityPersister> | 336 mutable scoped_ptr<TransportSecurityPersister> |
| 332 transport_security_persister_; | 337 transport_security_persister_; |
| 333 | 338 |
| 334 // These are only valid in between LazyInitialize() and their accessor being | 339 // These are only valid in between LazyInitialize() and their accessor being |
| 335 // called. | 340 // called. |
| 336 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; | 341 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; |
| 337 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; | 342 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; |
| 338 // One AppRequestContext per isolated app. | 343 // One AppRequestContext per isolated app. |
| 339 mutable AppRequestContextMap app_request_context_map_; | 344 mutable AppRequestContextMap app_request_context_map_; |
| 340 | 345 |
| 341 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 346 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 342 bool initialized_on_UI_thread_; | 347 bool initialized_on_UI_thread_; |
| 343 | 348 |
| 344 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 349 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 345 }; | 350 }; |
| 346 | 351 |
| 347 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 352 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |