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

Side by Side Diff: content/renderer/media/media_stream_video_track.cc

Issue 2707203006: Minor refactoring of support classes for video-device constraints. (Closed)
Patch Set: hbos comment + fix in accessor 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/media/media_stream_video_track.h" 5 #include "content/renderer/media/media_stream_video_track.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "content/renderer/media/media_stream_constraints_util_video_source.h" 14 #include "content/renderer/media/media_stream_constraints_util_video_device.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 namespace { 18 namespace {
19 void ResetCallback(std::unique_ptr<VideoCaptureDeliverFrameCB> callback) { 19 void ResetCallback(std::unique_ptr<VideoCaptureDeliverFrameCB> callback) {
20 // |callback| will be deleted when this exits. 20 // |callback| will be deleted when this exits.
21 } 21 }
22 22
23 // Empty method used for keeping a reference to the original media::VideoFrame. 23 // Empty method used for keeping a reference to the original media::VideoFrame.
24 // The reference to |frame| is kept in the closure that calls this method. 24 // The reference to |frame| is kept in the closure that calls this method.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 339 }
340 340
341 void MediaStreamVideoTrack::OnReadyStateChanged( 341 void MediaStreamVideoTrack::OnReadyStateChanged(
342 blink::WebMediaStreamSource::ReadyState state) { 342 blink::WebMediaStreamSource::ReadyState state) {
343 DCHECK(main_render_thread_checker_.CalledOnValidThread()); 343 DCHECK(main_render_thread_checker_.CalledOnValidThread());
344 for (auto* sink : sinks_) 344 for (auto* sink : sinks_)
345 sink->OnReadyStateChanged(state); 345 sink->OnReadyStateChanged(state);
346 } 346 }
347 347
348 } // namespace content 348 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_source.cc ('k') | content/renderer/media/user_media_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698