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 CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ | 6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
7 | 7 |
8 #include "content/public/browser/resource_context.h" | 8 #include "content/public/browser/resource_context.h" |
9 | 9 |
10 class IndexedDBContextImpl; | 10 class IndexedDBContextImpl; |
11 class ChromeBlobStorageContext; | 11 class ChromeBlobStorageContext; |
12 | 12 |
| 13 namespace fileapi { |
| 14 class FileSystemContext; |
| 15 } |
| 16 |
| 17 namespace webkit_blob { |
| 18 class BlobStorageController; |
| 19 } |
| 20 |
13 namespace webkit_database { | 21 namespace webkit_database { |
14 class DatabaseTracker; | 22 class DatabaseTracker; |
15 } | 23 } |
16 | 24 |
17 namespace content { | 25 namespace content { |
18 | 26 |
19 class BrowserContext; | 27 class BrowserContext; |
20 class HostZoomMap; | 28 class HostZoomMap; |
21 | 29 |
22 // Getters for objects that are part of BrowserContext which are also used on | 30 // Getters for objects that are part of BrowserContext which are also used on |
23 // the IO thread. These are only accessed by content so they're not on the | 31 // the IO thread. These are only accessed by content so they're not on the |
24 // public API. | 32 // public API. |
| 33 webkit_blob::BlobStorageController* GetBlobStorageControllerForResourceContext( |
| 34 ResourceContext* resource_context); |
25 webkit_database::DatabaseTracker* GetDatabaseTrackerForResourceContext( | 35 webkit_database::DatabaseTracker* GetDatabaseTrackerForResourceContext( |
26 ResourceContext* resource_context); | 36 ResourceContext* resource_context); |
| 37 fileapi::FileSystemContext* GetFileSystemContextForResourceContext( |
| 38 ResourceContext* resource_context); |
27 IndexedDBContextImpl* GetIndexedDBContextForResourceContext( | 39 IndexedDBContextImpl* GetIndexedDBContextForResourceContext( |
28 ResourceContext* resource_context); | 40 ResourceContext* resource_context); |
29 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( | 41 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( |
30 ResourceContext* resource_context); | 42 ResourceContext* resource_context); |
31 HostZoomMap* GetHostZoomMapForResourceContext(ResourceContext* context); | 43 HostZoomMap* GetHostZoomMapForResourceContext(ResourceContext* context); |
32 | 44 |
33 // Initialize the above data on the ResourceContext from a given BrowserContext. | 45 // Initialize the above data on the ResourceContext from a given BrowserContext. |
34 void InitializeResourceContext(BrowserContext* browser_context); | 46 void InitializeResourceContext(BrowserContext* browser_context); |
35 | 47 |
36 } // namespace content | 48 } // namespace content |
37 | 49 |
38 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ | 50 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
OLD | NEW |