OLD | NEW |
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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&); | 159 RTCRtpSender* addTrack(MediaStreamTrack*, MediaStreamVector, ExceptionState&); |
160 void removeTrack(RTCRtpSender*, ExceptionState&); | 160 void removeTrack(RTCRtpSender*, ExceptionState&); |
| 161 DEFINE_ATTRIBUTE_EVENT_LISTENER(track); |
161 | 162 |
162 RTCDataChannel* createDataChannel(ScriptState*, | 163 RTCDataChannel* createDataChannel(ScriptState*, |
163 String label, | 164 String label, |
164 const RTCDataChannelInit&, | 165 const RTCDataChannelInit&, |
165 ExceptionState&); | 166 ExceptionState&); |
166 | 167 |
167 RTCDTMFSender* createDTMFSender(MediaStreamTrack*, ExceptionState&); | 168 RTCDTMFSender* createDTMFSender(MediaStreamTrack*, ExceptionState&); |
168 | 169 |
169 void close(ExceptionState&); | 170 void close(ExceptionState&); |
170 | 171 |
(...skipping 13 matching lines...) Expand all Loading... |
184 // MediaStreamObserver | 185 // MediaStreamObserver |
185 void OnStreamAddTrack(MediaStream*, MediaStreamTrack*) override; | 186 void OnStreamAddTrack(MediaStream*, MediaStreamTrack*) override; |
186 void OnStreamRemoveTrack(MediaStream*, MediaStreamTrack*) override; | 187 void OnStreamRemoveTrack(MediaStream*, MediaStreamTrack*) override; |
187 | 188 |
188 // WebRTCPeerConnectionHandlerClient | 189 // WebRTCPeerConnectionHandlerClient |
189 void NegotiationNeeded() override; | 190 void NegotiationNeeded() override; |
190 void DidGenerateICECandidate(const WebRTCICECandidate&) override; | 191 void DidGenerateICECandidate(const WebRTCICECandidate&) override; |
191 void DidChangeSignalingState(SignalingState) override; | 192 void DidChangeSignalingState(SignalingState) override; |
192 void DidChangeICEGatheringState(ICEGatheringState) override; | 193 void DidChangeICEGatheringState(ICEGatheringState) override; |
193 void DidChangeICEConnectionState(ICEConnectionState) override; | 194 void DidChangeICEConnectionState(ICEConnectionState) override; |
194 void DidAddRemoteStream(const WebMediaStream&) override; | 195 void DidAddRemoteStream( |
| 196 const WebMediaStream&, |
| 197 WebVector<std::unique_ptr<WebRTCRtpReceiver>>*) override; |
195 void DidRemoveRemoteStream(const WebMediaStream&) override; | 198 void DidRemoveRemoteStream(const WebMediaStream&) override; |
196 void DidAddRemoteDataChannel(WebRTCDataChannelHandler*) override; | 199 void DidAddRemoteDataChannel(WebRTCDataChannelHandler*) override; |
197 void ReleasePeerConnectionHandler() override; | 200 void ReleasePeerConnectionHandler() override; |
198 void ClosePeerConnection() override; | 201 void ClosePeerConnection() override; |
199 | 202 |
200 // EventTarget | 203 // EventTarget |
201 const AtomicString& InterfaceName() const override; | 204 const AtomicString& InterfaceName() const override; |
202 ExecutionContext* GetExecutionContext() const override; | 205 ExecutionContext* GetExecutionContext() const override; |
203 | 206 |
204 // SuspendableObject | 207 // SuspendableObject |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 294 |
292 bool stopped_; | 295 bool stopped_; |
293 bool closed_; | 296 bool closed_; |
294 | 297 |
295 bool has_data_channels_; // For RAPPOR metrics | 298 bool has_data_channels_; // For RAPPOR metrics |
296 }; | 299 }; |
297 | 300 |
298 } // namespace blink | 301 } // namespace blink |
299 | 302 |
300 #endif // RTCPeerConnection_h | 303 #endif // RTCPeerConnection_h |
OLD | NEW |