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

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

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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/public/browser/browser_context.h ('k') | content/shell/shell_browser_context.cc » ('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) 2012 The Chromium Authors. All rights reserved. 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 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_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/supports_user_data.h"
10 #include "content/common/content_export.h"
9 11
10 class AudioManager; 12 class AudioManager;
11 class ChromeAppCacheService;
12 class ChromeBlobStorageContext;
13 class MediaObserver; 13 class MediaObserver;
14 class WebKitContext; 14
15 namespace appcache {
16 class AppCacheService;
17 }
18
15 namespace fileapi { 19 namespace fileapi {
16 class FileSystemContext; 20 class FileSystemContext;
17 } // namespace fileapi 21 }
22
18 namespace media_stream { 23 namespace media_stream {
19 class MediaStreamManager; 24 class MediaStreamManager;
20 } // namespace media_stream 25 }
26
21 namespace net { 27 namespace net {
22 class HostResolver; 28 class HostResolver;
23 class URLRequestContext; 29 class URLRequestContext;
24 } // namespace net 30 }
25 namespace quota { 31
26 class QuotaManager; 32 namespace webkit_blob {
27 }; // namespace quota 33 class BlobStorageController;
28 namespace webkit_database { 34 }
29 class DatabaseTracker;
30 } // namespace webkit_database
31 35
32 namespace content { 36 namespace content {
33 37
34 class HostZoomMap; 38 class HostZoomMap;
35 39
36 // ResourceContext contains the relevant context information required for 40 // ResourceContext contains the relevant context information required for
37 // resource loading. It lives on the IO thread, although it is constructed on 41 // resource loading. It lives on the IO thread, although it is constructed on
38 // the UI thread. 42 // the UI thread.
39 class ResourceContext { 43 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
40 public: 44 public:
45 static appcache::AppCacheService* GetAppCacheService(
46 ResourceContext* resource_context);
47 static fileapi::FileSystemContext* GetFileSystemContext(
48 ResourceContext* resource_context);
49 static webkit_blob::BlobStorageController* GetBlobStorageController(
50 ResourceContext* resource_context);
51
41 virtual ~ResourceContext() {} 52 virtual ~ResourceContext() {}
42
43 virtual net::HostResolver* GetHostResolver() = 0; 53 virtual net::HostResolver* GetHostResolver() = 0;
44 virtual net::URLRequestContext* GetRequestContext() = 0; 54 virtual net::URLRequestContext* GetRequestContext() = 0;
45 virtual ChromeAppCacheService* GetAppCacheService() = 0;
46 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
47 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
48 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0;
49 virtual quota::QuotaManager* GetQuotaManager() = 0;
50 virtual HostZoomMap* GetHostZoomMap() = 0; 55 virtual HostZoomMap* GetHostZoomMap() = 0;
51 virtual MediaObserver* GetMediaObserver() = 0; 56 virtual MediaObserver* GetMediaObserver() = 0;
52 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0; 57 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0;
53 virtual AudioManager* GetAudioManager() = 0; 58 virtual AudioManager* GetAudioManager() = 0;
54 virtual WebKitContext* GetWebKitContext() = 0;
55 }; 59 };
56 60
57 } // namespace content 61 } // namespace content
58 62
59 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 63 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698