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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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
11 // This file contains interfaces for RtpSenders 11 // This file contains interfaces for RtpSenders
12 // http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface 12 // http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface
13 13
14 #ifndef WEBRTC_API_RTPSENDERINTERFACE_H_ 14 #ifndef WEBRTC_API_RTPSENDERINTERFACE_H_
15 #define WEBRTC_API_RTPSENDERINTERFACE_H_ 15 #define WEBRTC_API_RTPSENDERINTERFACE_H_
16 16
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/api/mediatype.h"
20 #include "webrtc/api/mediastreaminterface.h" 21 #include "webrtc/api/mediastreaminterface.h"
21 #include "webrtc/api/proxy.h" 22 #include "webrtc/api/proxy.h"
22 #include "webrtc/api/rtpparameters.h" 23 #include "webrtc/api/rtpparameters.h"
23 #include "webrtc/base/refcount.h" 24 #include "webrtc/base/refcount.h"
24 #include "webrtc/base/scoped_ref_ptr.h" 25 #include "webrtc/base/scoped_ref_ptr.h"
25 #include "webrtc/pc/mediasession.h"
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
29 class RtpSenderInterface : public rtc::RefCountInterface { 29 class RtpSenderInterface : public rtc::RefCountInterface {
30 public: 30 public:
31 // Returns true if successful in setting the track. 31 // Returns true if successful in setting the track.
32 // Fails if an audio track is set on a video RtpSender, or vice-versa. 32 // Fails if an audio track is set on a video RtpSender, or vice-versa.
33 virtual bool SetTrack(MediaStreamTrackInterface* track) = 0; 33 virtual bool SetTrack(MediaStreamTrackInterface* track) = 0;
34 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0; 34 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0;
35 35
(...skipping 27 matching lines...) Expand all
63 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) 63 PROXY_CONSTMETHOD0(cricket::MediaType, media_type)
64 PROXY_CONSTMETHOD0(std::string, id) 64 PROXY_CONSTMETHOD0(std::string, id)
65 PROXY_CONSTMETHOD0(std::vector<std::string>, stream_ids) 65 PROXY_CONSTMETHOD0(std::vector<std::string>, stream_ids)
66 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); 66 PROXY_CONSTMETHOD0(RtpParameters, GetParameters);
67 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) 67 PROXY_METHOD1(bool, SetParameters, const RtpParameters&)
68 END_SIGNALING_PROXY() 68 END_SIGNALING_PROXY()
69 69
70 } // namespace webrtc 70 } // namespace webrtc
71 71
72 #endif // WEBRTC_API_RTPSENDERINTERFACE_H_ 72 #endif // WEBRTC_API_RTPSENDERINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698