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

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

Issue 2361173002: Move classses VideoCaptureDeviceClient and VideoCaptureBufferPool to media/capture/video (Closed)
Patch Set: Created 4 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: media/capture/video/video_frame_receiver.h
diff --git a/media/capture/video/video_frame_receiver.h b/media/capture/video/video_frame_receiver.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc69a124ee6d5b0dec089fcd600b6f94571519ed
--- /dev/null
+++ b/media/capture/video/video_frame_receiver.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/capture/capture_export.h"
+#include "media/capture/video/video_capture_device.h"
+
+namespace media {
+
+class CAPTURE_EXPORT VideoFrameReceiver {
mcasas 2016/09/22 21:41:58 nit: now that this class gets a file on its own, i
chfremer 2016/09/22 23:41:52 Done.
+ public:
+ virtual ~VideoFrameReceiver(){};
+
+ virtual void OnIncomingCapturedVideoFrame(
+ std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer,
+ const scoped_refptr<media::VideoFrame>& frame) = 0;
+ virtual void OnError() = 0;
+ virtual void OnLog(const std::string& message) = 0;
+ virtual void OnBufferDestroyed(int buffer_id_to_drop) = 0;
+};
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698