| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
| 6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual DownloadManager* GetDownloadManager() OVERRIDE; | 36 virtual DownloadManager* GetDownloadManager() OVERRIDE; |
| 37 virtual bool HasCreatedDownloadManager() const OVERRIDE; | 37 virtual bool HasCreatedDownloadManager() const OVERRIDE; |
| 38 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 38 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 39 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 39 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 40 int renderer_child_id) OVERRIDE; | 40 int renderer_child_id) OVERRIDE; |
| 41 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; | 41 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; |
| 42 virtual const ResourceContext& GetResourceContext() OVERRIDE; | 42 virtual const ResourceContext& GetResourceContext() OVERRIDE; |
| 43 virtual HostZoomMap* GetHostZoomMap() OVERRIDE; | 43 virtual HostZoomMap* GetHostZoomMap() OVERRIDE; |
| 44 virtual GeolocationPermissionContext* | 44 virtual GeolocationPermissionContext* |
| 45 GetGeolocationPermissionContext() OVERRIDE; | 45 GetGeolocationPermissionContext() OVERRIDE; |
| 46 virtual SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; |
| 46 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 47 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
| 47 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 48 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
| 48 virtual WebKitContext* GetWebKitContext() OVERRIDE; | 49 virtual WebKitContext* GetWebKitContext() OVERRIDE; |
| 49 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 50 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| 50 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; | 51 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; |
| 51 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 52 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
| 52 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 53 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 void CreateQuotaManagerAndClients(); | 56 void CreateQuotaManagerAndClients(); |
| 56 | 57 |
| 57 FilePath path_; | 58 FilePath path_; |
| 58 scoped_ptr<ResourceContext> resource_context_; | 59 scoped_ptr<ResourceContext> resource_context_; |
| 59 scoped_ptr<SSLHostState> ssl_host_state_; | 60 scoped_ptr<SSLHostState> ssl_host_state_; |
| 60 scoped_ptr<DownloadStatusUpdater> download_status_updater_; | 61 scoped_ptr<DownloadStatusUpdater> download_status_updater_; |
| 61 scoped_ptr<DownloadManagerDelegate> download_manager_delegate_; | 62 scoped_ptr<DownloadManagerDelegate> download_manager_delegate_; |
| 62 scoped_refptr<DownloadManager> download_manager_; | 63 scoped_refptr<DownloadManager> download_manager_; |
| 63 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 64 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
| 64 scoped_refptr<HostZoomMap> host_zoom_map_; | 65 scoped_refptr<HostZoomMap> host_zoom_map_; |
| 65 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; | 66 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
| 67 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; |
| 66 scoped_refptr<WebKitContext> webkit_context_; | 68 scoped_refptr<WebKitContext> webkit_context_; |
| 67 scoped_refptr<ChromeAppCacheService> appcache_service_; | 69 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 68 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 70 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
| 69 scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 71 scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
| 70 scoped_refptr<quota::QuotaManager> quota_manager_; | 72 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 71 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 73 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 72 | 74 |
| 73 ShellBrowserMainParts* shell_main_parts_; | 75 ShellBrowserMainParts* shell_main_parts_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 77 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace content | 80 } // namespace content |
| 79 | 81 |
| 80 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 82 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
| OLD | NEW |