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

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

Issue 2361173002: Move classses VideoCaptureDeviceClient and VideoCaptureBufferPool to media/capture/video (Closed)
Patch Set: mcasas@ comments 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: content/browser/renderer_host/media/video_capture_controller.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index 9674bdd09f3bbdf4f4b75c4c4cea3b177be122a1..25c826bbc115ee717462be5c90eb6e6ec7cdff34 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -52,24 +52,15 @@
#include "content/common/content_export.h"
#include "content/common/media/video_capture.h"
#include "media/base/video_capture_types.h"
-#include "media/capture/video/video_capture_device.h"
+#include "media/capture/video/video_frame_receiver.h"
-namespace content {
+namespace media {
class VideoCaptureBufferPool;
+}
-class CONTENT_EXPORT VideoFrameReceiver {
- 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 content {
-class CONTENT_EXPORT VideoCaptureController : public VideoFrameReceiver {
+class CONTENT_EXPORT VideoCaptureController : public media::VideoFrameReceiver {
public:
// |max_buffers| is the maximum number of video frame buffers in-flight at any
// one time. This value should be based on the logical capacity of the
@@ -137,7 +128,7 @@ class CONTENT_EXPORT VideoCaptureController : public VideoFrameReceiver {
bool has_received_frames() const { return has_received_frames_; }
- // Implementation of VideoFrameReceiver interface:
+ // Implementation of media::VideoFrameReceiver interface:
void OnIncomingCapturedVideoFrame(
std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer,
const scoped_refptr<media::VideoFrame>& frame) override;
@@ -164,7 +155,7 @@ class CONTENT_EXPORT VideoCaptureController : public VideoFrameReceiver {
const ControllerClients& clients);
// The pool of shared-memory buffers used for capturing.
- const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;
+ const scoped_refptr<media::VideoCaptureBufferPool> buffer_pool_;
// All clients served by this controller.
ControllerClients controller_clients_;

Powered by Google App Engine
This is Rietveld 408576698