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

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

Issue 83633008: Reland: Reorganize media::VideoCapture* types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 #include "content/renderer/media/rtc_video_capture_delegate.h" 5 #include "content/renderer/media/rtc_video_capture_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "media/base/video_frame.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 RtcVideoCaptureDelegate::RtcVideoCaptureDelegate( 12 RtcVideoCaptureDelegate::RtcVideoCaptureDelegate(
12 const media::VideoCaptureSessionId id, 13 const media::VideoCaptureSessionId id,
13 VideoCaptureImplManager* vc_manager) 14 VideoCaptureImplManager* vc_manager)
14 : session_id_(id), 15 : session_id_(id),
15 vc_manager_(vc_manager), 16 vc_manager_(vc_manager),
16 capture_engine_(NULL), 17 capture_engine_(NULL),
17 got_first_frame_(false), 18 got_first_frame_(false),
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 115 }
115 116
116 117
117 void RtcVideoCaptureDelegate::OnRemovedOnCaptureThread( 118 void RtcVideoCaptureDelegate::OnRemovedOnCaptureThread(
118 media::VideoCapture* capture) { 119 media::VideoCapture* capture) {
119 if (!error_occured_ && !state_callback_.is_null()) 120 if (!error_occured_ && !state_callback_.is_null())
120 state_callback_.Run(CAPTURE_STOPPED); 121 state_callback_.Run(CAPTURE_STOPPED);
121 } 122 }
122 123
123 } // namespace content 124 } // namespace content
OLDNEW
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/rtc_video_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698