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

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

Issue 21421002: Revert EVS revisions 209760, 298753, 213143. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased at 216225, prepare to land Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_ENCODING_VIDEO_CAPTURER_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_ENCODING_VIDEO_CAPTURER_FACTORY_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "base/observer_list.h"
10 #include "media/video/encoded_video_source.h"
11 #include "media/video/video_encode_types.h"
12 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoencoderfacto ry.h"
13
14 namespace content {
15
16 class RtcEncodingVideoCapturer;
17
18 class RtcEncodingVideoCapturerFactory :
19 public cricket::WebRtcVideoEncoderFactory,
20 public base::SupportsWeakPtr<RtcEncodingVideoCapturerFactory> {
21 public:
22 RtcEncodingVideoCapturerFactory();
23
24 // WebRtcVideoEncoderFactory interface.
25 virtual webrtc::VideoEncoder* CreateVideoEncoder(
26 webrtc::VideoCodecType type) OVERRIDE;
27 virtual void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) OVERRIDE;
28
29 virtual const std::vector<VideoCodec>& codecs() const OVERRIDE;
30
31 virtual void AddObserver(
32 WebRtcVideoEncoderFactory::Observer* observer) OVERRIDE;
33 virtual void RemoveObserver(
34 WebRtcVideoEncoderFactory::Observer* observer) OVERRIDE;
35
36 // Callback for RequestCapabilities().
37 void OnCapabilitiesAvailable(const media::VideoEncodingCapabilities& caps);
38
39 // Invoked when an EncodedVideoSource is added/removed.
40 void OnEncodedVideoSourceAdded(media::EncodedVideoSource* source);
41 void OnEncodedVideoSourceRemoved(media::EncodedVideoSource* source);
42
43 private:
44 virtual ~RtcEncodingVideoCapturerFactory();
45
46 // Set of registered encoding capable video capturers.
47 typedef std::set<webrtc::VideoEncoder*> EncoderSet;
48
49 media::EncodedVideoSource* encoded_video_source_;
50 std::vector<VideoCodec> codecs_;
51
52 EncoderSet encoder_set_;
53
54 ObserverList<WebRtcVideoEncoderFactory::Observer, true> observers_;
55
56 DISALLOW_COPY_AND_ASSIGN(RtcEncodingVideoCapturerFactory);
57 };
58
59 } // namespace content
60
61 #endif // CONTENT_RENDERER_MEDIA_RTC_ENCODING_VIDEO_CAPTURER_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_encoding_video_capturer.cc ('k') | content/renderer/media/rtc_encoding_video_capturer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698