OLD | NEW |
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" |
(...skipping 29 matching lines...) Expand all Loading... |
40 int buffer_id) = 0; | 40 int buffer_id) = 0; |
41 | 41 |
42 // A buffer has been filled with a captured VideoFrame. | 42 // A buffer has been filled with a captured VideoFrame. |
43 virtual void OnBufferReady(VideoCaptureControllerID id, | 43 virtual void OnBufferReady(VideoCaptureControllerID id, |
44 int buffer_id, | 44 int buffer_id, |
45 const scoped_refptr<media::VideoFrame>& frame) = 0; | 45 const scoped_refptr<media::VideoFrame>& frame) = 0; |
46 | 46 |
47 // The capture session has ended and no more frames will be sent. | 47 // The capture session has ended and no more frames will be sent. |
48 virtual void OnEnded(VideoCaptureControllerID id) = 0; | 48 virtual void OnEnded(VideoCaptureControllerID id) = 0; |
49 | 49 |
| 50 // VideoCaptureDevice has successfully started the device. |
| 51 virtual void OnStarted(VideoCaptureControllerID id) = 0; |
| 52 |
50 protected: | 53 protected: |
51 virtual ~VideoCaptureControllerEventHandler() {} | 54 virtual ~VideoCaptureControllerEventHandler() {} |
52 }; | 55 }; |
53 | 56 |
54 } // namespace content | 57 } // namespace content |
55 | 58 |
56 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA
NDLER_H_ | 59 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA
NDLER_H_ |
OLD | NEW |