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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
14 #include "media/audio/audio_manager.h" | |
jam
2012/02/03 00:49:44
nit: this include shouldn't be needed here, just a
vrk (LEFT CHROMIUM)
2012/03/06 02:07:50
Done.
| |
14 | 15 |
15 class DownloadManager; | 16 class DownloadManager; |
16 class DownloadStatusUpdater; | 17 class DownloadStatusUpdater; |
17 class SSLHostState; | 18 class SSLHostState; |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 | 21 |
21 class DownloadManagerDelegate; | 22 class DownloadManagerDelegate; |
22 class ResourceContext; | 23 class ResourceContext; |
23 class ShellBrowserMainParts; | 24 class ShellBrowserMainParts; |
(...skipping 21 matching lines...) Expand all Loading... | |
45 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 46 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
46 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 47 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
47 virtual WebKitContext* GetWebKitContext() OVERRIDE; | 48 virtual WebKitContext* GetWebKitContext() OVERRIDE; |
48 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 49 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
49 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; | 50 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; |
50 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 51 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
51 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 52 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
52 | 53 |
53 private: | 54 private: |
54 void CreateQuotaManagerAndClients(); | 55 void CreateQuotaManagerAndClients(); |
56 AudioManager* GetAudioManager(); | |
55 | 57 |
56 FilePath path_; | 58 FilePath path_; |
57 scoped_ptr<ResourceContext> resource_context_; | 59 scoped_ptr<ResourceContext> resource_context_; |
58 scoped_ptr<SSLHostState> ssl_host_state_; | 60 scoped_ptr<SSLHostState> ssl_host_state_; |
59 scoped_ptr<DownloadStatusUpdater> download_status_updater_; | 61 scoped_ptr<DownloadStatusUpdater> download_status_updater_; |
60 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 62 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
61 scoped_refptr<DownloadManager> download_manager_; | 63 scoped_refptr<DownloadManager> download_manager_; |
62 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 64 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
63 scoped_refptr<HostZoomMap> host_zoom_map_; | 65 scoped_refptr<HostZoomMap> host_zoom_map_; |
64 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; | 66 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
65 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; | 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_; |
74 scoped_refptr<AudioManager> audio_manager_; | |
72 | 75 |
73 ShellBrowserMainParts* shell_main_parts_; | 76 ShellBrowserMainParts* shell_main_parts_; |
74 | 77 |
75 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 78 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
76 }; | 79 }; |
77 | 80 |
78 } // namespace content | 81 } // namespace content |
79 | 82 |
80 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 83 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |