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

Unified Diff: media/video/capture/video_capture_device.h

Issue 8304017: enable video capture to support sharing across multiple renderer processes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review Created 9 years, 2 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: media/video/capture/video_capture_device.h
===================================================================
--- media/video/capture/video_capture_device.h (revision 106642)
+++ media/video/capture/video_capture_device.h (working copy)
@@ -22,7 +22,6 @@
class MEDIA_EXPORT VideoCaptureDevice {
public:
-
struct Name {
// Friendly name of a device
std::string device_name;
@@ -69,6 +68,8 @@
// Called when VideoCaptureDevice::Allocate has been called
// to inform of the resulting frame size and color format.
virtual void OnFrameInfo(const Capability& info) = 0;
+ // Notify handler of state of the device.
+ virtual void OnDeviceState(bool in_use) = 0;
mflodman_chromium_OOO 2011/10/26 12:34:45 Is this needed? Previously we used the event in st
wjia(left Chromium) 2011/10/26 21:17:33 in VideoCaptureDeviceLinux, its Stop() is asynchro
protected:
virtual ~EventHandler() {}

Powered by Google App Engine
This is Rietveld 408576698