[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 | |||||
horo | d556043 | 2014-12-12 06:20:13 | [diff] [blame] | 8 | #include "content/common/content_export.h" |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 9 | #include "content/public/browser/resource_context.h" |
10 | |||||
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 11 | namespace content { |
12 | |||||
[email protected] | c2ab420 | 2012-10-24 22:54:46 | [diff] [blame] | 13 | class ChromeBlobStorageContext; |
[email protected] | bb85a8c4 | 2013-03-13 04:34:19 | [diff] [blame] | 14 | class StreamContext; |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 15 | class BrowserContext; |
[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( |
horo | d556043 | 2014-12-12 06:20:13 | [diff] [blame] | 23 | const ResourceContext* resource_context); |
[email protected] | 55c0eca | 2012-09-15 05:12:34 | [diff] [blame] | 24 | |
horo | d556043 | 2014-12-12 06:20:13 | [diff] [blame] | 25 | CONTENT_EXPORT StreamContext* GetStreamContextForResourceContext( |
26 | const ResourceContext* resource_context); | ||||
[email protected] | bb85a8c4 | 2013-03-13 04:34:19 | [diff] [blame] | 27 | |
[email protected] | 5bf1646f5 | 2013-01-28 03:57:02 | [diff] [blame] | 28 | URLDataManagerBackend* GetURLDataManagerForResourceContext( |
[email protected] | 33c1c26a | 2013-01-24 21:56:26 | [diff] [blame] | 29 | ResourceContext* context); |
30 | |||||
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 31 | // Initialize the above data on the ResourceContext from a given BrowserContext. |
horo | d556043 | 2014-12-12 06:20:13 | [diff] [blame] | 32 | CONTENT_EXPORT void InitializeResourceContext(BrowserContext* browser_context); |
[email protected] | 314c3e2 | 2012-02-21 03:57:42 | [diff] [blame] | 33 | |
34 | } // namespace content | ||||
35 | |||||
36 | #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |