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

Side by Side Diff: content/public/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
« no previous file with comments | « content/content_browser.gypi ('k') | content/shell/shell_resource_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
7
8 #include <map>
9 7
10 #include "base/basictypes.h" 8 #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 9
15 class AudioManager; 10 class AudioManager;
16 class ChromeAppCacheService; 11 class ChromeAppCacheService;
17 class ChromeBlobStorageContext; 12 class ChromeBlobStorageContext;
18 class MediaObserver; 13 class MediaObserver;
19 namespace fileapi { 14 namespace fileapi {
20 class FileSystemContext; 15 class FileSystemContext;
21 } // namespace fileapi 16 } // namespace fileapi
22 namespace media_stream { 17 namespace media_stream {
23 class MediaStreamManager; 18 class MediaStreamManager;
24 } // namespace media_stream 19 } // namespace media_stream
25 namespace net { 20 namespace net {
26 class HostResolver; 21 class HostResolver;
27 class URLRequestContext; 22 class URLRequestContext;
28 } // namespace net 23 } // namespace net
29 namespace quota { 24 namespace quota {
30 class QuotaManager; 25 class QuotaManager;
31 }; // namespace quota 26 }; // namespace quota
32 namespace webkit_database { 27 namespace webkit_database {
33 class DatabaseTracker; 28 class DatabaseTracker;
34 } // namespace webkit_database 29 } // namespace webkit_database
35 30
36 namespace content { 31 namespace content {
37 32
38 class HostZoomMap; 33 class HostZoomMap;
39 34
40 // ResourceContext contains the relevant context information required for 35 // ResourceContext contains the relevant context information required for
41 // resource loading. It lives on the IO thread, although it is constructed on 36 // resource loading. It lives on the IO thread, although it is constructed on
42 // the UI thread. 37 // the UI thread.
43 class CONTENT_EXPORT ResourceContext { 38 class ResourceContext {
44 public: 39 public:
45 virtual ~ResourceContext(); 40 virtual ~ResourceContext() {}
46 41
47 virtual net::HostResolver* GetHostResolver() = 0; 42 virtual net::HostResolver* GetHostResolver() = 0;
48 virtual net::URLRequestContext* GetRequestContext() = 0; 43 virtual net::URLRequestContext* GetRequestContext() = 0;
49 virtual ChromeAppCacheService* GetAppCacheService() = 0; 44 virtual ChromeAppCacheService* GetAppCacheService() = 0;
50 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; 45 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
51 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; 46 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
52 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; 47 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0;
53 virtual quota::QuotaManager* GetQuotaManager() = 0; 48 virtual quota::QuotaManager* GetQuotaManager() = 0;
54 virtual HostZoomMap* GetHostZoomMap() = 0; 49 virtual HostZoomMap* GetHostZoomMap() = 0;
55 virtual MediaObserver* GetMediaObserver() = 0; 50 virtual MediaObserver* GetMediaObserver() = 0;
56 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0; 51 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0;
57 virtual AudioManager* GetAudioManager() = 0; 52 virtual AudioManager* GetAudioManager() = 0;
58 }; 53 };
59 54
60 } // namespace content 55 } // namespace content
61 56
62 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_ 57 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/shell/shell_resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698