Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / browser / resource_context_impl.h
blob903cc543a24201395a5f6374f41d7d713527b611
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.
5 #ifndef CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_
8 #include "content/common/content_export.h"
9 #include "content/public/browser/resource_context.h"
11 namespace content {
13 class ChromeBlobStorageContext;
14 class StreamContext;
15 class BrowserContext;
16 class URLDataManagerBackend;
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.
22 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext(
23 const ResourceContext* resource_context);
25 CONTENT_EXPORT StreamContext* GetStreamContextForResourceContext(
26 const ResourceContext* resource_context);
28 URLDataManagerBackend* GetURLDataManagerForResourceContext(
29 ResourceContext* context);
31 // Initialize the above data on the ResourceContext from a given BrowserContext.
32 CONTENT_EXPORT void InitializeResourceContext(BrowserContext* browser_context);
34 } // namespace content
36 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_