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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller_event_handler.h

Issue 2407623002: VideoCapture: migrate last Renderer-->Host msg and start Host-->Renderer migration (Closed)
Patch Set: chfremer@ comments Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 13
14 namespace media { 14 namespace media {
15 class VideoFrame; 15 class VideoFrame;
16 } // namespace media 16 } // namespace media
17 17
18 namespace content { 18 namespace content {
19 19
20 typedef int VideoCaptureControllerID; 20 typedef int VideoCaptureControllerID;
21 21
22 // VideoCaptureControllerEventHandler is the interface for 22 // VideoCaptureControllerEventHandler is the interface for
23 // VideoCaptureController to notify clients about the events such as 23 // VideoCaptureController to notify clients about the events such as
24 // BufferReady, FrameInfo, Error, etc. 24 // BufferReady, FrameInfo, Error, etc.
25 // TODO(mcasas): https://crbug.com/654176 merge back into VideoCaptureController
25 class CONTENT_EXPORT VideoCaptureControllerEventHandler { 26 class CONTENT_EXPORT VideoCaptureControllerEventHandler {
26 public: 27 public:
27 // An Error has occurred in the VideoCaptureDevice. 28 // An Error has occurred in the VideoCaptureDevice.
28 virtual void OnError(VideoCaptureControllerID id) = 0; 29 virtual void OnError(VideoCaptureControllerID id) = 0;
29 30
30 // A buffer has been newly created. 31 // A buffer has been newly created.
31 virtual void OnBufferCreated(VideoCaptureControllerID id, 32 virtual void OnBufferCreated(VideoCaptureControllerID id,
32 base::SharedMemoryHandle handle, 33 base::SharedMemoryHandle handle,
33 int length, 34 int length,
34 int buffer_id) = 0; 35 int buffer_id) = 0;
(...skipping 10 matching lines...) Expand all
45 // The capture session has ended and no more frames will be sent. 46 // The capture session has ended and no more frames will be sent.
46 virtual void OnEnded(VideoCaptureControllerID id) = 0; 47 virtual void OnEnded(VideoCaptureControllerID id) = 0;
47 48
48 protected: 49 protected:
49 virtual ~VideoCaptureControllerEventHandler() {} 50 virtual ~VideoCaptureControllerEventHandler() {}
50 }; 51 };
51 52
52 } // namespace content 53 } // namespace content
53 54
54 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ 55 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698