| 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 static RTCPeerConnection* create(ExecutionContext*, const Dictionary&, const
Dictionary&, ExceptionState&); | 73 static RTCPeerConnection* create(ExecutionContext*, const Dictionary&, const
Dictionary&, ExceptionState&); |
| 74 ~RTCPeerConnection() override; | 74 ~RTCPeerConnection() override; |
| 75 | 75 |
| 76 ScriptPromise createOffer(ScriptState*, const RTCOfferOptions&); | 76 ScriptPromise createOffer(ScriptState*, const RTCOfferOptions&); |
| 77 ScriptPromise createOffer(ScriptState*, RTCSessionDescriptionCallback*, RTCP
eerConnectionErrorCallback*, const Dictionary&); | 77 ScriptPromise createOffer(ScriptState*, RTCSessionDescriptionCallback*, RTCP
eerConnectionErrorCallback*, const Dictionary&); |
| 78 | 78 |
| 79 ScriptPromise createAnswer(ScriptState*, const RTCAnswerOptions&); | 79 ScriptPromise createAnswer(ScriptState*, const RTCAnswerOptions&); |
| 80 ScriptPromise createAnswer(ScriptState*, RTCSessionDescriptionCallback*, RTC
PeerConnectionErrorCallback*, const Dictionary&); | 80 ScriptPromise createAnswer(ScriptState*, RTCSessionDescriptionCallback*, RTC
PeerConnectionErrorCallback*, const Dictionary&); |
| 81 | 81 |
| 82 ScriptPromise setLocalDescription(ScriptState*, const RTCSessionDescriptionI
nit&); | 82 ScriptPromise setLocalDescription(ScriptState*, const RTCSessionDescriptionI
nit&); |
| 83 ScriptPromise setLocalDescription(ScriptState*, RTCSessionDescription*, Void
Callback*, RTCPeerConnectionErrorCallback*); | 83 ScriptPromise setLocalDescription(ScriptState*, const RTCSessionDescriptionI
nit&, VoidCallback*, RTCPeerConnectionErrorCallback*); |
| 84 RTCSessionDescription* localDescription(); | 84 RTCSessionDescription* localDescription(); |
| 85 | 85 |
| 86 ScriptPromise setRemoteDescription(ScriptState*, const RTCSessionDescription
Init&); | 86 ScriptPromise setRemoteDescription(ScriptState*, const RTCSessionDescription
Init&); |
| 87 ScriptPromise setRemoteDescription(ScriptState*, RTCSessionDescription*, Voi
dCallback*, RTCPeerConnectionErrorCallback*); | 87 ScriptPromise setRemoteDescription(ScriptState*, const RTCSessionDescription
Init&, VoidCallback*, RTCPeerConnectionErrorCallback*); |
| 88 RTCSessionDescription* remoteDescription(); | 88 RTCSessionDescription* remoteDescription(); |
| 89 | 89 |
| 90 String signalingState() const; | 90 String signalingState() const; |
| 91 | 91 |
| 92 void updateIce(ExecutionContext*, const Dictionary& rtcConfiguration, const
Dictionary& mediaConstraints, ExceptionState&); | 92 void updateIce(ExecutionContext*, const Dictionary& rtcConfiguration, const
Dictionary& mediaConstraints, ExceptionState&); |
| 93 | 93 |
| 94 // Certificate management | 94 // Certificate management |
| 95 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt | 95 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt |
| 96 static ScriptPromise generateCertificate(ScriptState*, const AlgorithmIdenti
fier& keygenAlgorithm, ExceptionState&); | 96 static ScriptPromise generateCertificate(ScriptState*, const AlgorithmIdenti
fier& keygenAlgorithm, ExceptionState&); |
| 97 | 97 |
| 98 ScriptPromise addIceCandidate(ScriptState*, const RTCIceCandidateInitOrRTCIc
eCandidate&); | 98 ScriptPromise addIceCandidate(ScriptState*, const RTCIceCandidateInitOrRTCIc
eCandidate&); |
| 99 ScriptPromise addIceCandidate(ScriptState*, RTCIceCandidate*, VoidCallback*,
RTCPeerConnectionErrorCallback*); | 99 ScriptPromise addIceCandidate(ScriptState*, const RTCIceCandidateInitOrRTCIc
eCandidate&, VoidCallback*, RTCPeerConnectionErrorCallback*); |
| 100 | 100 |
| 101 String iceGatheringState() const; | 101 String iceGatheringState() const; |
| 102 | 102 |
| 103 String iceConnectionState() const; | 103 String iceConnectionState() const; |
| 104 | 104 |
| 105 MediaStreamVector getLocalStreams() const; | 105 MediaStreamVector getLocalStreams() const; |
| 106 | 106 |
| 107 MediaStreamVector getRemoteStreams() const; | 107 MediaStreamVector getRemoteStreams() const; |
| 108 | 108 |
| 109 MediaStream* getStreamById(const String& streamId); | 109 MediaStream* getStreamById(const String& streamId); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; | 209 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; |
| 210 HeapVector<Member<EventWrapper>> m_scheduledEvents; | 210 HeapVector<Member<EventWrapper>> m_scheduledEvents; |
| 211 | 211 |
| 212 bool m_stopped; | 212 bool m_stopped; |
| 213 bool m_closed; | 213 bool m_closed; |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 } // namespace blink | 216 } // namespace blink |
| 217 | 217 |
| 218 #endif // RTCPeerConnection_h | 218 #endif // RTCPeerConnection_h |
| OLD | NEW |