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

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

Issue 7649016: Removing singleton property of MediaStreamManager and creating thread first when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changing unit tests based on review by scherkus. Created 9 years, 4 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/video_capture_host.h
diff --git a/content/browser/renderer_host/media/video_capture_host.h b/content/browser/renderer_host/media/video_capture_host.h
index 335ee4b1a6538810fe5fc1f7760b6e75d2f9a97f..e0c086956554ab0fa0580f62d288ffd3fd164d67 100644
--- a/content/browser/renderer_host/media/video_capture_host.h
+++ b/content/browser/renderer_host/media/video_capture_host.h
@@ -43,11 +43,15 @@
#include "content/browser/renderer_host/media/video_capture_controller.h"
#include "ipc/ipc_message.h"
+namespace content {
+class ResourceContext;
+} // namespace content
+
class VideoCaptureHost
: public BrowserMessageFilter,
public VideoCaptureControllerEventHandler {
public:
- VideoCaptureHost();
+ VideoCaptureHost(const content::ResourceContext* resource_context);
// BrowserMessageFilter implementation.
virtual void OnChannelClosing();
@@ -127,6 +131,9 @@ class VideoCaptureHost
// objects that is currently active.
EntryMap entries_;
+ // Used to get a pointer to VideoCaptureManager to start/stop capture devices.
+ const content::ResourceContext* resource_context_;
+
DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
};

Powered by Google App Engine
This is Rietveld 408576698