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

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 comments on PS#3 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698