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

Side by Side Diff: webrtc/api/rtpreceiverinterface.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 RtpReceivers 11 // This file contains interfaces for RtpReceivers
12 // http://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface 12 // http://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface
13 13
14 #ifndef WEBRTC_API_RTPRECEIVERINTERFACE_H_ 14 #ifndef WEBRTC_API_RTPRECEIVERINTERFACE_H_
15 #define WEBRTC_API_RTPRECEIVERINTERFACE_H_ 15 #define WEBRTC_API_RTPRECEIVERINTERFACE_H_
16 16
17 #include <string> 17 #include <string>
18 18
19 #include "webrtc/api/mediatype.h"
19 #include "webrtc/api/mediastreaminterface.h" 20 #include "webrtc/api/mediastreaminterface.h"
20 #include "webrtc/api/proxy.h" 21 #include "webrtc/api/proxy.h"
21 #include "webrtc/api/rtpparameters.h" 22 #include "webrtc/api/rtpparameters.h"
22 #include "webrtc/base/refcount.h" 23 #include "webrtc/base/refcount.h"
23 #include "webrtc/base/scoped_ref_ptr.h" 24 #include "webrtc/base/scoped_ref_ptr.h"
24 #include "webrtc/pc/mediasession.h"
25 25
26 namespace webrtc { 26 namespace webrtc {
27 27
28 class RtpReceiverObserverInterface { 28 class RtpReceiverObserverInterface {
29 public: 29 public:
30 // Note: Currently if there are multiple RtpReceivers of the same media type, 30 // Note: Currently if there are multiple RtpReceivers of the same media type,
31 // they will all call OnFirstPacketReceived at once. 31 // they will all call OnFirstPacketReceived at once.
32 // 32 //
33 // In the future, it's likely that an RtpReceiver will only call 33 // In the future, it's likely that an RtpReceiver will only call
34 // OnFirstPacketReceived when a packet is received specifically for its 34 // OnFirstPacketReceived when a packet is received specifically for its
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) 70 PROXY_CONSTMETHOD0(cricket::MediaType, media_type)
71 PROXY_CONSTMETHOD0(std::string, id) 71 PROXY_CONSTMETHOD0(std::string, id)
72 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); 72 PROXY_CONSTMETHOD0(RtpParameters, GetParameters);
73 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) 73 PROXY_METHOD1(bool, SetParameters, const RtpParameters&)
74 PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*); 74 PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*);
75 END_SIGNALING_PROXY() 75 END_SIGNALING_PROXY()
76 76
77 } // namespace webrtc 77 } // namespace webrtc
78 78
79 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_ 79 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698