OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
| 7 |
| 8 #include "content/public/browser/resource_context.h" |
| 9 |
| 10 class ChromeBlobStorageContext; |
| 11 class WebKitContext; |
| 12 |
| 13 namespace webkit_database { |
| 14 class DatabaseTracker; |
| 15 } |
| 16 |
| 17 namespace content { |
| 18 |
| 19 class BrowserContext; |
| 20 |
| 21 // Getters for objects that are part of BrowserContext which are also used on |
| 22 // the IO thread. These are only accessed by content so they're not on the |
| 23 // public API. |
| 24 webkit_database::DatabaseTracker* GetDatabaseTrackerForResourceContext( |
| 25 ResourceContext* resource_context); |
| 26 WebKitContext* GetWebKitContextForResourceContext( |
| 27 ResourceContext* resource_context); |
| 28 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( |
| 29 ResourceContext* resource_context); |
| 30 |
| 31 // Initialize the above data on the ResourceContext from a given BrowserContext. |
| 32 void InitializeResourceContext(BrowserContext* browser_context); |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
OLD | NEW |