[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 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 | |||||
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 10 | namespace content { |
11 | |||||
[email protected] | c2ab420 | 2012-10-24 22:54:46 | [diff] [blame] | 12 | class ChromeBlobStorageContext; |
[email protected] | bb85a8c4 | 2013-03-13 04:34:19 | [diff] [blame] | 13 | class StreamContext; |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 14 | class BrowserContext; |
[email protected] | 5fe3713a | 2012-02-22 08:31:56 | [diff] [blame] | 15 | class HostZoomMap; |
[email protected] | 5bf1646f5 | 2013-01-28 03:57:02 | [diff] [blame] | 16 | class URLDataManagerBackend; |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 17 | |
18 | // Getters for objects that are part of BrowserContext which are also used on | ||||
19 | // the IO thread. These are only accessed by content so they're not on the | ||||
20 | // public API. | ||||
[email protected] | 7dc8935 | 2012-09-11 21:41:01 | [diff] [blame] | 21 | |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 22 | ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( |
23 | ResourceContext* resource_context); | ||||
[email protected] | 55c0eca | 2012-09-15 05:12:34 | [diff] [blame] | 24 | |
[email protected] | bb85a8c4 | 2013-03-13 04:34:19 | [diff] [blame] | 25 | StreamContext* GetStreamContextForResourceContext( |
26 | ResourceContext* resource_context); | ||||
27 | |||||
[email protected] | 5fe3713a | 2012-02-22 08:31:56 | [diff] [blame] | 28 | HostZoomMap* GetHostZoomMapForResourceContext(ResourceContext* context); |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 29 | |
[email protected] | 5bf1646f5 | 2013-01-28 03:57:02 | [diff] [blame] | 30 | URLDataManagerBackend* GetURLDataManagerForResourceContext( |
[email protected] | 33c1c26a | 2013-01-24 21:56:26 | [diff] [blame] | 31 | ResourceContext* context); |
32 | |||||
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 33 | // Initialize the above data on the ResourceContext from a given BrowserContext. |
[email protected] | 7e26ac9 | 2012-02-27 20:15:05 | [diff] [blame] | 34 | void InitializeResourceContext(BrowserContext* browser_context); |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 35 | |
36 | } // namespace content | ||||
37 | |||||
38 | #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |