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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void OnFrameReadyInBuffer( | 94 void OnFrameReadyInBuffer( |
95 int buffer_id, | 95 int buffer_id, |
96 int frame_feedback_id, | 96 int frame_feedback_id, |
97 std::unique_ptr< | 97 std::unique_ptr< |
98 media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission> | 98 media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission> |
99 buffer_read_permission, | 99 buffer_read_permission, |
100 media::mojom::VideoFrameInfoPtr frame_info) override; | 100 media::mojom::VideoFrameInfoPtr frame_info) override; |
101 void OnBufferRetired(int buffer_id) override; | 101 void OnBufferRetired(int buffer_id) override; |
102 void OnError() override; | 102 void OnError() override; |
103 void OnLog(const std::string& message) override; | 103 void OnLog(const std::string& message) override; |
| 104 void OnStarted() override; |
104 | 105 |
105 private: | 106 private: |
106 struct ControllerClient; | 107 struct ControllerClient; |
107 typedef std::list<std::unique_ptr<ControllerClient>> ControllerClients; | 108 typedef std::list<std::unique_ptr<ControllerClient>> ControllerClients; |
108 | 109 |
109 class BufferContext { | 110 class BufferContext { |
110 public: | 111 public: |
111 BufferContext( | 112 BufferContext( |
112 int buffer_context_id, | 113 int buffer_context_id, |
113 int buffer_id, | 114 int buffer_id, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 media::VideoCaptureFormat video_capture_format_; | 192 media::VideoCaptureFormat video_capture_format_; |
192 | 193 |
193 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 194 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
194 | 195 |
195 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 196 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
196 }; | 197 }; |
197 | 198 |
198 } // namespace content | 199 } // namespace content |
199 | 200 |
200 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 201 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
OLD | NEW |