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/browser/browser_context.h" | 13 #include "content/browser/browser_context.h" |
14 | 14 |
| 15 class DownloadIdFactory; |
15 class DownloadManager; | 16 class DownloadManager; |
16 class DownloadStatusUpdater; | 17 class DownloadStatusUpdater; |
17 class GeolocationPermissionContext; | 18 class GeolocationPermissionContext; |
18 class HostZoomMap; | 19 class HostZoomMap; |
19 class SSLHostState; | 20 class SSLHostState; |
20 | 21 |
21 namespace content { | 22 namespace content { |
22 | 23 |
23 class DownloadManagerDelegate; | 24 class DownloadManagerDelegate; |
24 class ResourceContext; | 25 class ResourceContext; |
(...skipping 28 matching lines...) Expand all Loading... |
53 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 54 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
54 | 55 |
55 private: | 56 private: |
56 void CreateQuotaManagerAndClients(); | 57 void CreateQuotaManagerAndClients(); |
57 | 58 |
58 FilePath path_; | 59 FilePath path_; |
59 scoped_ptr<ResourceContext> resource_context_; | 60 scoped_ptr<ResourceContext> resource_context_; |
60 scoped_ptr<SSLHostState> ssl_host_state_; | 61 scoped_ptr<SSLHostState> ssl_host_state_; |
61 scoped_ptr<DownloadStatusUpdater> download_status_updater_; | 62 scoped_ptr<DownloadStatusUpdater> download_status_updater_; |
62 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 63 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
| 64 scoped_refptr<DownloadIdFactory> download_id_factory_; |
63 scoped_refptr<DownloadManager> download_manager_; | 65 scoped_refptr<DownloadManager> download_manager_; |
64 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 66 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
65 scoped_refptr<HostZoomMap> host_zoom_map_; | 67 scoped_refptr<HostZoomMap> host_zoom_map_; |
66 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; | 68 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
67 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; | 69 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; |
68 scoped_refptr<WebKitContext> webkit_context_; | 70 scoped_refptr<WebKitContext> webkit_context_; |
69 scoped_refptr<ChromeAppCacheService> appcache_service_; | 71 scoped_refptr<ChromeAppCacheService> appcache_service_; |
70 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 72 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
71 scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 73 scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
72 scoped_refptr<quota::QuotaManager> quota_manager_; | 74 scoped_refptr<quota::QuotaManager> quota_manager_; |
73 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 75 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
74 | 76 |
75 ShellBrowserMainParts* shell_main_parts_; | 77 ShellBrowserMainParts* shell_main_parts_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 79 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace content | 82 } // namespace content |
81 | 83 |
82 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 84 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |