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