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

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

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

Powered by Google App Engine
This is Rietveld 408576698