summaryrefslogtreecommitdiffstats
path: root/content/browser/resource_context_impl.h
blob: a3bbf95ca4673a805c1eb5f4059dd23d39ac7111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// 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.

#ifndef CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_
#define CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_

#include "content/public/browser/resource_context.h"

class IndexedDBContextImpl;
class ChromeBlobStorageContext;

namespace fileapi {
class FileSystemContext;
}

namespace webkit_blob {
class BlobStorageController;
}

namespace webkit_database {
class DatabaseTracker;
}

namespace content {

class BrowserContext;
class HostZoomMap;

// 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.
webkit_blob::BlobStorageController* GetBlobStorageControllerForResourceContext(
    ResourceContext* resource_context);
webkit_database::DatabaseTracker* GetDatabaseTrackerForResourceContext(
    ResourceContext* resource_context);
fileapi::FileSystemContext* GetFileSystemContextForResourceContext(
    ResourceContext* resource_context);
IndexedDBContextImpl* GetIndexedDBContextForResourceContext(
    ResourceContext* resource_context);
ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext(
    ResourceContext* resource_context);
HostZoomMap* GetHostZoomMapForResourceContext(ResourceContext* context);

// Initialize the above data on the ResourceContext from a given BrowserContext.
void InitializeResourceContext(BrowserContext* browser_context);

}  // namespace content

#endif  // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_