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

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

Issue 1610243002: Move talk/app/webrtc to webrtc/api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated location for peerconnection_unittests.isolate Created 4 years, 11 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
(Empty)
1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 // This file contains interfaces for RtpReceivers
12 // http://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface
13
14 #ifndef WEBRTC_API_RTPRECEIVERINTERFACE_H_
15 #define WEBRTC_API_RTPRECEIVERINTERFACE_H_
16
17 #include <string>
18
19 #include "webrtc/api/mediastreaminterface.h"
20 #include "webrtc/api/proxy.h"
21 #include "webrtc/base/refcount.h"
22 #include "webrtc/base/scoped_ref_ptr.h"
23
24 namespace webrtc {
25
26 class RtpReceiverInterface : public rtc::RefCountInterface {
27 public:
28 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0;
29
30 // Not to be confused with "mid", this is a field we can temporarily use
31 // to uniquely identify a receiver until we implement Unified Plan SDP.
32 virtual std::string id() const = 0;
33
34 virtual void Stop() = 0;
35
36 protected:
37 virtual ~RtpReceiverInterface() {}
38 };
39
40 // Define proxy for RtpReceiverInterface.
41 BEGIN_PROXY_MAP(RtpReceiver)
42 PROXY_CONSTMETHOD0(rtc::scoped_refptr<MediaStreamTrackInterface>, track)
43 PROXY_CONSTMETHOD0(std::string, id)
44 PROXY_METHOD0(void, Stop)
45 END_PROXY()
46
47 } // namespace webrtc
48
49 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698