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

Unified Diff: content/browser/renderer_host/media/media_stream_dispatcher_host.h

Issue 7948004: Removing singelton property of MediaStreamManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/media_stream_dispatcher_host.h
diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host.h b/content/browser/renderer_host/media/media_stream_dispatcher_host.h
index 3951339a6aa90a556d8b8423695b42d7b9862cd3..c02d675c45bcf02332d67bcc1b051811dd696938 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host.h
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host.h
@@ -14,6 +14,10 @@
#include "content/browser/renderer_host/media/media_stream_requester.h"
#include "content/common/media/media_stream_options.h"
+namespace content {
+class ResourceContext;
+} // namespace content
+
namespace media_stream {
// MediaStreamDispatcherHost is a delegate for Media Stream API messages used by
@@ -23,7 +27,8 @@ class MediaStreamDispatcherHost
: public BrowserMessageFilter,
public MediaStreamRequester {
public:
- explicit MediaStreamDispatcherHost(int render_process_id);
+ MediaStreamDispatcherHost(const content::ResourceContext* resource_context,
+ int render_process_id);
virtual ~MediaStreamDispatcherHost();
// MediaStreamRequester implementation.
@@ -54,7 +59,9 @@ class MediaStreamDispatcherHost
// creating one if needed.
MediaStreamManager* manager();
+ const content::ResourceContext* resource_context_;
int render_process_id_;
+
struct StreamRequest {
StreamRequest() {}
StreamRequest(int render_view_id, int page_request_id)

Powered by Google App Engine
This is Rietveld 408576698