Chromium Code Reviews| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 // state which stops the flow of data to clients. | 184 // state which stops the flow of data to clients. |
| 185 VideoCaptureState state_; | 185 VideoCaptureState state_; |
| 186 | 186 |
| 187 int next_buffer_context_id_ = 0; | 187 int next_buffer_context_id_ = 0; |
| 188 | 188 |
| 189 // True if the controller has received a video frame from the device. | 189 // True if the controller has received a video frame from the device. |
| 190 bool has_received_frames_; | 190 bool has_received_frames_; |
| 191 | 191 |
| 192 media::VideoCaptureFormat video_capture_format_; | 192 media::VideoCaptureFormat video_capture_format_; |
| 193 | 193 |
| 194 // True if OnStarted has been reported from the device. | |
| 195 bool has_received_onstarted_; | |
|
miu
2017/03/06 22:37:33
Instead of adding this separate boolean, how about
braveyao
2017/03/08 22:02:52
Done.
| |
| 196 | |
| 194 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 197 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
| 195 | 198 |
| 196 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 199 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 } // namespace content | 202 } // namespace content |
| 200 | 203 |
| 201 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 204 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
| OLD | NEW |