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

Unified Diff: content/common/media/video_capture.h

Issue 242013002: Refactor video capturing code in the render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again :( Created 6 years, 8 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/common/media/video_capture.h
diff --git a/content/common/media/video_capture.h b/content/common/media/video_capture.h
index 5c6384e19d0873ce3eadf87f003437529a7fb221..bf43ebbcda8ed39ff74a3239a983cc81e65f74b6 100644
--- a/content/common/media/video_capture.h
+++ b/content/common/media/video_capture.h
@@ -7,6 +7,10 @@
#ifndef CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_
#define CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_
+#include "base/time/time.h"
+#include "media/base/video_frame.h"
+#include "media/video/capture/video_capture_types.h"
+
namespace content {
// Current status of the video capture device. It's used by multiple classes
@@ -24,6 +28,15 @@ enum VideoCaptureState {
VIDEO_CAPTURE_STATE_LAST = VIDEO_CAPTURE_STATE_ENDED
};
+typedef base::Callback<void(VideoCaptureState)>
+ VideoCaptureStateUpdateCB;
+typedef base::Callback<void(const media::VideoCaptureFormats&)>
+ VideoCaptureDeviceFormatsCB;
+typedef base::Callback<
+ void(const scoped_refptr<media::VideoFrame>&,
+ const media::VideoCaptureFormat&)>
+ VideoCaptureDeliverFrameCB;
+
} // namespace content
#endif // CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_

Powered by Google App Engine
This is Rietveld 408576698