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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h

Issue 2951713002: RTCPeerConnection.addTrack and removeTrack added (behind flag) (Closed)
Patch Set: Addressed deadbeef's comments Created 3 years, 5 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 (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 void removeStream(MediaStream*, ExceptionState&); 150 void removeStream(MediaStream*, ExceptionState&);
151 151
152 ScriptPromise getStats(ScriptState*, 152 ScriptPromise getStats(ScriptState*,
153 RTCStatsCallback* success_callback, 153 RTCStatsCallback* success_callback,
154 MediaStreamTrack* selector = nullptr); 154 MediaStreamTrack* selector = nullptr);
155 ScriptPromise getStats(ScriptState*); 155 ScriptPromise getStats(ScriptState*);
156 156
157 HeapVector<Member<RTCRtpSender>> getSenders(); 157 HeapVector<Member<RTCRtpSender>> getSenders();
158 HeapVector<Member<RTCRtpReceiver>> getReceivers(); 158 HeapVector<Member<RTCRtpReceiver>> getReceivers();
159 RTCRtpSender* addTrack(MediaStreamTrack*, MediaStreamVector, ExceptionState&);
160 void removeTrack(RTCRtpSender*, ExceptionState&);
159 161
160 RTCDataChannel* createDataChannel(ScriptState*, 162 RTCDataChannel* createDataChannel(ScriptState*,
161 String label, 163 String label,
162 const RTCDataChannelInit&, 164 const RTCDataChannelInit&,
163 ExceptionState&); 165 ExceptionState&);
164 166
165 RTCDTMFSender* createDTMFSender(MediaStreamTrack*, ExceptionState&); 167 RTCDTMFSender* createDTMFSender(MediaStreamTrack*, ExceptionState&);
166 168
167 void close(ExceptionState&); 169 void close(ExceptionState&);
168 170
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 291
290 bool stopped_; 292 bool stopped_;
291 bool closed_; 293 bool closed_;
292 294
293 bool has_data_channels_; // For RAPPOR metrics 295 bool has_data_channels_; // For RAPPOR metrics
294 }; 296 };
295 297
296 } // namespace blink 298 } // namespace blink
297 299
298 #endif // RTCPeerConnection_h 300 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698