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

Side by Side Diff: content/renderer/media/media_stream_video_capturer_source.h

Issue 960103002: Rename VideoCaptureImplManager to VideoCaptureService Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix some nits Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/message_loop/message_loop_proxy.h" 11 #include "base/message_loop/message_loop_proxy.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "content/common/media/video_capture.h" 13 #include "content/common/media/video_capture.h"
14 #include "content/renderer/media/media_stream_video_source.h" 14 #include "content/renderer/media/media_stream_video_source.h"
15 #include "media/base/video_capturer_source.h" 15 #include "media/base/video_capturer_source.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 // VideoCapturerDelegate is a delegate used by MediaStreamVideoCapturerSource 19 // VideoCapturerDelegate is a delegate used by MediaStreamVideoCapturerSource
20 // for local video capturer. It uses VideoCaptureImplManager to start / stop 20 // for local video capturer. It uses VideoCaptureService to start / stop
21 // and receive I420 frames from Chrome's video capture implementation. 21 // and receive I420 frames from Chrome's video capture implementation.
22 // 22 //
23 // This is a render thread only object. 23 // This is a render thread only object.
24 24
25 class CONTENT_EXPORT VideoCapturerDelegate : public media::VideoCapturerSource { 25 class CONTENT_EXPORT VideoCapturerDelegate : public media::VideoCapturerSource {
26 public: 26 public:
27 explicit VideoCapturerDelegate(const StreamDeviceInfo& device_info); 27 explicit VideoCapturerDelegate(const StreamDeviceInfo& device_info);
28 ~VideoCapturerDelegate() override; 28 ~VideoCapturerDelegate() override;
29 29
30 // VideoCaptureDelegate Implementation. 30 // VideoCaptureDelegate Implementation.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void OnStarted(bool result); 106 void OnStarted(bool result);
107 // The delegate that provides video frames. 107 // The delegate that provides video frames.
108 scoped_ptr<media::VideoCapturerSource> delegate_; 108 scoped_ptr<media::VideoCapturerSource> delegate_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); 110 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 115 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698