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

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

Issue 2721113002: getUserMedia: handle the device starting status report. (Closed)
Patch Set: address nits Created 3 years, 9 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
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_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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const std::vector<BufferContext>::iterator& buffer_state_iter); 173 const std::vector<BufferContext>::iterator& buffer_state_iter);
174 174
175 std::unique_ptr<media::VideoFrameConsumerFeedbackObserver> 175 std::unique_ptr<media::VideoFrameConsumerFeedbackObserver>
176 consumer_feedback_observer_; 176 consumer_feedback_observer_;
177 177
178 std::vector<BufferContext> buffer_contexts_; 178 std::vector<BufferContext> buffer_contexts_;
179 179
180 // All clients served by this controller. 180 // All clients served by this controller.
181 ControllerClients controller_clients_; 181 ControllerClients controller_clients_;
182 182
183 // Takes on only the states 'STARTED' and 'ERROR'. 'ERROR' is an absorbing 183 // Takes on only the states 'STARTING', 'STARTED' and 'ERROR'. 'ERROR' is an
184 // state which stops the flow of data to clients. 184 // absorbing 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 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; 194 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); 196 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController);
197 }; 197 };
198 198
199 } // namespace content 199 } // namespace content
200 200
201 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ 201 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698