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

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

Issue 7284037: Adding MediaStreamManager. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Added DeviceRequest dtor, needed for clang. Created 9 years, 5 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_manager.h
===================================================================
--- content/browser/renderer_host/media/video_capture_manager.h (revision 91672)
+++ content/browser/renderer_host/media/video_capture_manager.h (working copy)
@@ -12,7 +12,6 @@
#include <map>
-#include "base/lazy_instance.h"
#include "base/threading/thread.h"
#include "content/browser/renderer_host/media/media_stream_provider.h"
#include "content/common/media/media_stream_options.h"
@@ -29,8 +28,8 @@
// before MediaStream is implemented in Chrome and WebKit.
enum { kStartOpenSessionId = 1 };
- // Called to get a pointer to the singleton.
- static VideoCaptureManager* Get();
+ VideoCaptureManager();
+ virtual ~VideoCaptureManager();
// Implements MediaStreamProvider.
virtual void Register(MediaStreamProviderListener* listener);
@@ -59,8 +58,6 @@
// won't stream any more captured frames.
void Error(const media::VideoCaptureSessionId& capture_session_id);
- virtual ~VideoCaptureManager();
-
// Used by unit test to make sure a fake device is used instead of a real
// video capture device. Due to timing requirements, the function must be
// called before EnumerateDevices and Open.
@@ -68,10 +65,6 @@
MessageLoop* GetMessageLoop();
private:
- friend struct base::DefaultLazyInstanceTraits<VideoCaptureManager>;
-
- VideoCaptureManager();
-
// Called by the public functions, executed on vc_device_thread_.
void OnEnumerateDevices();
void OnOpen(int capture_session_id, const StreamDeviceInfo& device);

Powered by Google App Engine
This is Rietveld 408576698