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

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

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (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_main_parts.h ('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) 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" 9 #include "base/supports_user_data.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 class AudioManager;
13 class MediaObserver; 12 class MediaObserver;
14 13
15 namespace appcache { 14 namespace appcache {
16 class AppCacheService; 15 class AppCacheService;
17 } 16 }
18 17
19 namespace fileapi { 18 namespace fileapi {
20 class FileSystemContext; 19 class FileSystemContext;
21 } 20 }
22 21
23 namespace media_stream {
24 class MediaStreamManager;
25 }
26
27 namespace net { 22 namespace net {
28 class HostResolver; 23 class HostResolver;
29 class URLRequestContext; 24 class URLRequestContext;
30 } 25 }
31 26
32 namespace webkit_blob { 27 namespace webkit_blob {
33 class BlobStorageController; 28 class BlobStorageController;
34 } 29 }
35 30
36 namespace content { 31 namespace content {
37 32
38 // ResourceContext contains the relevant context information required for 33 // ResourceContext contains the relevant context information required for
39 // resource loading. It lives on the IO thread, although it is constructed on 34 // resource loading. It lives on the IO thread, although it is constructed on
40 // the UI thread. 35 // the UI thread.
41 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData { 36 class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
42 public: 37 public:
43 static appcache::AppCacheService* GetAppCacheService( 38 static appcache::AppCacheService* GetAppCacheService(
44 ResourceContext* resource_context); 39 ResourceContext* resource_context);
45 static fileapi::FileSystemContext* GetFileSystemContext( 40 static fileapi::FileSystemContext* GetFileSystemContext(
46 ResourceContext* resource_context); 41 ResourceContext* resource_context);
47 static webkit_blob::BlobStorageController* GetBlobStorageController( 42 static webkit_blob::BlobStorageController* GetBlobStorageController(
48 ResourceContext* resource_context); 43 ResourceContext* resource_context);
49 44
50 virtual ~ResourceContext() {} 45 virtual ~ResourceContext() {}
51 virtual net::HostResolver* GetHostResolver() = 0; 46 virtual net::HostResolver* GetHostResolver() = 0;
52 virtual net::URLRequestContext* GetRequestContext() = 0; 47 virtual net::URLRequestContext* GetRequestContext() = 0;
53 virtual MediaObserver* GetMediaObserver() = 0; 48 virtual MediaObserver* GetMediaObserver() = 0;
54 virtual media_stream::MediaStreamManager* GetMediaStreamManager() = 0;
55 virtual AudioManager* GetAudioManager() = 0;
56 }; 49 };
57 50
58 } // namespace content 51 } // namespace content
59 52
60 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 53 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_main_parts.h ('k') | content/shell/shell_resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698