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

Side by Side Diff: webrtc/api/mediastreaminterface.h

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Work-in-progress, after applying 1790633002. Created 4 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 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 12 matching lines...) Expand all
23 #include "webrtc/base/basictypes.h" 23 #include "webrtc/base/basictypes.h"
24 #include "webrtc/base/refcount.h" 24 #include "webrtc/base/refcount.h"
25 #include "webrtc/base/scoped_ref_ptr.h" 25 #include "webrtc/base/scoped_ref_ptr.h"
26 #include "webrtc/media/base/mediachannel.h" 26 #include "webrtc/media/base/mediachannel.h"
27 #include "webrtc/media/base/videosinkinterface.h" 27 #include "webrtc/media/base/videosinkinterface.h"
28 #include "webrtc/media/base/videosourceinterface.h" 28 #include "webrtc/media/base/videosourceinterface.h"
29 29
30 namespace cricket { 30 namespace cricket {
31 31
32 class AudioRenderer; 32 class AudioRenderer;
33 class VideoCapturer;
34 class VideoRenderer; 33 class VideoRenderer;
35 class VideoFrame; 34 class VideoFrame;
36 35
37 } // namespace cricket 36 } // namespace cricket
38 37
39 namespace webrtc { 38 namespace webrtc {
40 39
41 // Generic observer interface. 40 // Generic observer interface.
42 class ObserverInterface { 41 class ObserverInterface {
43 public: 42 public:
(...skipping 29 matching lines...) Expand all
73 72
74 protected: 73 protected:
75 virtual ~MediaSourceInterface() {} 74 virtual ~MediaSourceInterface() {}
76 }; 75 };
77 76
78 // Information about a track. 77 // Information about a track.
79 class MediaStreamTrackInterface : public rtc::RefCountInterface, 78 class MediaStreamTrackInterface : public rtc::RefCountInterface,
80 public NotifierInterface { 79 public NotifierInterface {
81 public: 80 public:
82 enum TrackState { 81 enum TrackState {
83 kInitializing, // Track is beeing negotiated. 82 kLive = 1,
84 kLive = 1, // Track alive 83 kEnded = 2,
85 kEnded = 2, // Track have ended
86 kFailed = 3, // Track negotiation failed.
87 }; 84 };
88 85
89 static const char kAudioKind[]; 86 static const char kAudioKind[];
90 static const char kVideoKind[]; 87 static const char kVideoKind[];
91 88
92 virtual std::string kind() const = 0; 89 virtual std::string kind() const = 0;
93 virtual std::string id() const = 0; 90 virtual std::string id() const = 0;
94 virtual bool enabled() const = 0; 91 virtual bool enabled() const = 0;
95 virtual TrackState state() const = 0; 92 virtual TrackState state() const = 0;
96 virtual bool set_enabled(bool enable) = 0; 93 virtual bool set_enabled(bool enable) = 0;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; 294 virtual bool RemoveTrack(AudioTrackInterface* track) = 0;
298 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; 295 virtual bool RemoveTrack(VideoTrackInterface* track) = 0;
299 296
300 protected: 297 protected:
301 virtual ~MediaStreamInterface() {} 298 virtual ~MediaStreamInterface() {}
302 }; 299 };
303 300
304 } // namespace webrtc 301 } // namespace webrtc
305 302
306 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ 303 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698