blob: 903cc543a24201395a5f6374f41d7d713527b611 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/common/content_export.h"
#include "content/public/browser/resource_context.h"
namespace content {
class ChromeBlobStorageContext;
class StreamContext;
class BrowserContext;
class URLDataManagerBackend;
// Getters for objects that are part of BrowserContext which are also used on
// the IO thread. These are only accessed by content so they're not on the
// public API.
ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext(
const ResourceContext* resource_context);
CONTENT_EXPORT StreamContext* GetStreamContextForResourceContext(
const ResourceContext* resource_context);
URLDataManagerBackend* GetURLDataManagerForResourceContext(
ResourceContext* context);
// Initialize the above data on the ResourceContext from a given BrowserContext.
CONTENT_EXPORT void InitializeResourceContext(BrowserContext* browser_context);
} // namespace content