Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: content/browser/resource_context.h

Issue 9371025: Move resource_context.h to content/public/browser. Remove the workaround in its destructor since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_H_
6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_H_
7
8 #include <map>
9
10 #include "base/basictypes.h"
11 #include "base/callback_forward.h"
12 #include "base/memory/ref_counted.h"
13 #include "content/common/content_export.h"
14
15 class AudioManager;
16 class ChromeAppCacheService;
17 class ChromeBlobStorageContext;
18 class MediaObserver;
19 namespace fileapi {
20 class FileSystemContext;
21 } // namespace fileapi
22 namespace media_stream {
23 class MediaStreamManager;
24 } // namespace media_stream
25 namespace net {
26 class HostResolver;
27 class URLRequestContext;
28 } // namespace net
29 namespace quota {
30 class QuotaManager;
31 }; // namespace quota
32 namespace webkit_database {
33 class DatabaseTracker;
34 } // namespace webkit_database
35
36 namespace content {
37
38 class HostZoomMap;
39
40 // ResourceContext contains the relevant context information required for
41 // resource loading. It lives on the IO thread, although it is constructed on
42 // the UI thread.
43 class CONTENT_EXPORT ResourceContext {
44 public:
45 virtual ~ResourceContext();
46
47 virtual net::HostResolver* GetHostResolver() = 0;
48 virtual net::URLRequestContext* GetRequestContext() = 0;
49 virtual ChromeAppCacheService* GetAppCacheService() = 0;
50 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
51 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
52 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0;
53 virtual quota::QuotaManager* GetQuotaManager() = 0;
54 virtual HostZoomMap* GetHostZoomMap() = 0;
55 virtual MediaObserver* GetMediaObserver() = 0;
56 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0;
57 virtual AudioManager* GetAudioManager() = 0;
58 };
59
60 } // namespace content
61
62 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_message_filter.cc ('k') | content/browser/resource_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698