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

Side by Side Diff: talk/app/webrtc/peerconnectionproxy.h

Issue 1563403002: Adding AddTrack/RemoveTrack to native PeerConnection API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding default implementation for new methods. 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
« no previous file with comments | « talk/app/webrtc/peerconnectioninterface_unittest.cc ('k') | talk/app/webrtc/rtpsender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 23 matching lines...) Expand all
34 namespace webrtc { 34 namespace webrtc {
35 35
36 // Define proxy for PeerConnectionInterface. 36 // Define proxy for PeerConnectionInterface.
37 BEGIN_PROXY_MAP(PeerConnection) 37 BEGIN_PROXY_MAP(PeerConnection)
38 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, 38 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>,
39 local_streams) 39 local_streams)
40 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, 40 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>,
41 remote_streams) 41 remote_streams)
42 PROXY_METHOD1(bool, AddStream, MediaStreamInterface*) 42 PROXY_METHOD1(bool, AddStream, MediaStreamInterface*)
43 PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*) 43 PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*)
44 PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>,
45 AddTrack,
46 MediaStreamTrackInterface*,
47 std::vector<MediaStreamInterface*>)
48 PROXY_METHOD1(bool, RemoveTrack, RtpSenderInterface*)
44 PROXY_METHOD1(rtc::scoped_refptr<DtmfSenderInterface>, 49 PROXY_METHOD1(rtc::scoped_refptr<DtmfSenderInterface>,
45 CreateDtmfSender, AudioTrackInterface*) 50 CreateDtmfSender, AudioTrackInterface*)
46 PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>, 51 PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>,
47 CreateSender, 52 CreateSender,
48 const std::string&, 53 const std::string&,
49 const std::string&) 54 const std::string&)
50 PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpSenderInterface>>, 55 PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpSenderInterface>>,
51 GetSenders) 56 GetSenders)
52 PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpReceiverInterface>>, 57 PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpReceiverInterface>>,
53 GetReceivers) 58 GetReceivers)
(...skipping 20 matching lines...) Expand all
74 PROXY_METHOD0(SignalingState, signaling_state) 79 PROXY_METHOD0(SignalingState, signaling_state)
75 PROXY_METHOD0(IceState, ice_state) 80 PROXY_METHOD0(IceState, ice_state)
76 PROXY_METHOD0(IceConnectionState, ice_connection_state) 81 PROXY_METHOD0(IceConnectionState, ice_connection_state)
77 PROXY_METHOD0(IceGatheringState, ice_gathering_state) 82 PROXY_METHOD0(IceGatheringState, ice_gathering_state)
78 PROXY_METHOD0(void, Close) 83 PROXY_METHOD0(void, Close)
79 END_PROXY() 84 END_PROXY()
80 85
81 } // namespace webrtc 86 } // namespace webrtc
82 87
83 #endif // TALK_APP_WEBRTC_PEERCONNECTIONPROXY_H_ 88 #endif // TALK_APP_WEBRTC_PEERCONNECTIONPROXY_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/peerconnectioninterface_unittest.cc ('k') | talk/app/webrtc/rtpsender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698