| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void createAnswer(ExecutionContext*, RTCSessionDescriptionCallback*, RTCErro
rCallback*, const Dictionary&, ExceptionState&); | 73 void createAnswer(ExecutionContext*, RTCSessionDescriptionCallback*, RTCErro
rCallback*, const Dictionary&, ExceptionState&); |
| 74 | 74 |
| 75 void setLocalDescription(ExecutionContext*, RTCSessionDescription*, VoidCall
back*, RTCErrorCallback*, ExceptionState&); | 75 void setLocalDescription(ExecutionContext*, RTCSessionDescription*, VoidCall
back*, RTCErrorCallback*, ExceptionState&); |
| 76 RTCSessionDescription* localDescription(); | 76 RTCSessionDescription* localDescription(); |
| 77 | 77 |
| 78 void setRemoteDescription(ExecutionContext*, RTCSessionDescription*, VoidCal
lback*, RTCErrorCallback*, ExceptionState&); | 78 void setRemoteDescription(ExecutionContext*, RTCSessionDescription*, VoidCal
lback*, RTCErrorCallback*, ExceptionState&); |
| 79 RTCSessionDescription* remoteDescription(); | 79 RTCSessionDescription* remoteDescription(); |
| 80 | 80 |
| 81 String signalingState() const; | 81 String signalingState() const; |
| 82 | 82 |
| 83 void updateIce(const Dictionary& rtcConfiguration, const Dictionary& mediaCo
nstraints, ExceptionState&); | 83 void updateIce(ExecutionContext*, const Dictionary& rtcConfiguration, const
Dictionary& mediaConstraints, ExceptionState&); |
| 84 | 84 |
| 85 // Certificate management | 85 // Certificate management |
| 86 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt | 86 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt |
| 87 static ScriptPromise generateCertificate(ScriptState*, const AlgorithmIdenti
fier& keygenAlgorithm, ExceptionState&); | 87 static ScriptPromise generateCertificate(ScriptState*, const AlgorithmIdenti
fier& keygenAlgorithm, ExceptionState&); |
| 88 | 88 |
| 89 // DEPRECATED | 89 // DEPRECATED |
| 90 void addIceCandidate(RTCIceCandidate*, ExceptionState&); | 90 void addIceCandidate(RTCIceCandidate*, ExceptionState&); |
| 91 | 91 |
| 92 void addIceCandidate(RTCIceCandidate*, VoidCallback*, RTCErrorCallback*, Exc
eptionState&); | 92 void addIceCandidate(RTCIceCandidate*, VoidCallback*, RTCErrorCallback*, Exc
eptionState&); |
| 93 | 93 |
| 94 String iceGatheringState() const; | 94 String iceGatheringState() const; |
| 95 | 95 |
| 96 String iceConnectionState() const; | 96 String iceConnectionState() const; |
| 97 | 97 |
| 98 MediaStreamVector getLocalStreams() const; | 98 MediaStreamVector getLocalStreams() const; |
| 99 | 99 |
| 100 MediaStreamVector getRemoteStreams() const; | 100 MediaStreamVector getRemoteStreams() const; |
| 101 | 101 |
| 102 MediaStream* getStreamById(const String& streamId); | 102 MediaStream* getStreamById(const String& streamId); |
| 103 | 103 |
| 104 void addStream(MediaStream*, const Dictionary& mediaConstraints, ExceptionSt
ate&); | 104 void addStream(ExecutionContext*, MediaStream*, const Dictionary& mediaConst
raints, ExceptionState&); |
| 105 | 105 |
| 106 void removeStream(MediaStream*, ExceptionState&); | 106 void removeStream(MediaStream*, ExceptionState&); |
| 107 | 107 |
| 108 void getStats(ExecutionContext*, RTCStatsCallback* successCallback, MediaStr
eamTrack* selector); | 108 void getStats(ExecutionContext*, RTCStatsCallback* successCallback, MediaStr
eamTrack* selector); |
| 109 | 109 |
| 110 RTCDataChannel* createDataChannel(String label, const Dictionary& dataChanne
lDict, ExceptionState&); | 110 RTCDataChannel* createDataChannel(String label, const Dictionary& dataChanne
lDict, ExceptionState&); |
| 111 | 111 |
| 112 RTCDTMFSender* createDTMFSender(MediaStreamTrack*, ExceptionState&); | 112 RTCDTMFSender* createDTMFSender(MediaStreamTrack*, ExceptionState&); |
| 113 | 113 |
| 114 void close(ExceptionState&); | 114 void close(ExceptionState&); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; | 204 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; |
| 205 HeapVector<Member<EventWrapper>> m_scheduledEvents; | 205 HeapVector<Member<EventWrapper>> m_scheduledEvents; |
| 206 | 206 |
| 207 bool m_stopped; | 207 bool m_stopped; |
| 208 bool m_closed; | 208 bool m_closed; |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace blink | 211 } // namespace blink |
| 212 | 212 |
| 213 #endif // RTCPeerConnection_h | 213 #endif // RTCPeerConnection_h |
| OLD | NEW |