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/common/content_export.h" |
8 #include "content/public/browser/resource_context.h" | 9 #include "content/public/browser/resource_context.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 class ChromeBlobStorageContext; | 13 class ChromeBlobStorageContext; |
13 class StreamContext; | 14 class StreamContext; |
14 class BrowserContext; | 15 class BrowserContext; |
15 class URLDataManagerBackend; | 16 class URLDataManagerBackend; |
16 | 17 |
17 // Getters for objects that are part of BrowserContext which are also used on | 18 // Getters for objects that are part of BrowserContext which are also used on |
18 // the IO thread. These are only accessed by content so they're not on the | 19 // the IO thread. These are only accessed by content so they're not on the |
19 // public API. | 20 // public API. |
20 | 21 |
21 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( | 22 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( |
22 ResourceContext* resource_context); | 23 const ResourceContext* resource_context); |
23 | 24 |
24 StreamContext* GetStreamContextForResourceContext( | 25 CONTENT_EXPORT StreamContext* GetStreamContextForResourceContext( |
25 ResourceContext* resource_context); | 26 const ResourceContext* resource_context); |
26 | 27 |
27 URLDataManagerBackend* GetURLDataManagerForResourceContext( | 28 URLDataManagerBackend* GetURLDataManagerForResourceContext( |
28 ResourceContext* context); | 29 ResourceContext* context); |
29 | 30 |
30 // Initialize the above data on the ResourceContext from a given BrowserContext. | 31 // Initialize the above data on the ResourceContext from a given BrowserContext. |
31 void InitializeResourceContext(BrowserContext* browser_context); | 32 CONTENT_EXPORT void InitializeResourceContext(BrowserContext* browser_context); |
32 | 33 |
33 } // namespace content | 34 } // namespace content |
34 | 35 |
35 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ | 36 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |
OLD | NEW |