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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef RTCPeerConnection_h | 31 #ifndef RTCPeerConnection_h |
32 #define RTCPeerConnection_h | 32 #define RTCPeerConnection_h |
33 | 33 |
34 #include "bindings/core/v8/Dictionary.h" | 34 #include "bindings/core/v8/Dictionary.h" |
| 35 #include "bindings/core/v8/ScriptPromise.h" |
35 #include "core/dom/ActiveDOMObject.h" | 36 #include "core/dom/ActiveDOMObject.h" |
36 #include "modules/EventTargetModules.h" | 37 #include "modules/EventTargetModules.h" |
37 #include "modules/mediastream/MediaStream.h" | 38 #include "modules/mediastream/MediaStream.h" |
| 39 #include "modules/mediastream/RTCCertificate.h" |
38 #include "modules/mediastream/RTCIceCandidate.h" | 40 #include "modules/mediastream/RTCIceCandidate.h" |
39 #include "platform/AsyncMethodRunner.h" | 41 #include "platform/AsyncMethodRunner.h" |
40 #include "public/platform/WebMediaConstraints.h" | 42 #include "public/platform/WebMediaConstraints.h" |
41 #include "public/platform/WebRTCPeerConnectionHandler.h" | 43 #include "public/platform/WebRTCPeerConnectionHandler.h" |
42 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" | 44 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" |
43 | 45 |
44 namespace blink { | 46 namespace blink { |
45 | 47 |
46 class ExceptionState; | 48 class ExceptionState; |
47 class MediaStreamTrack; | 49 class MediaStreamTrack; |
(...skipping 25 matching lines...) Expand all Loading... |
73 void setLocalDescription(RTCSessionDescription*, VoidCallback*, RTCErrorCall
back*, ExceptionState&); | 75 void setLocalDescription(RTCSessionDescription*, VoidCallback*, RTCErrorCall
back*, ExceptionState&); |
74 RTCSessionDescription* localDescription(ExceptionState&); | 76 RTCSessionDescription* localDescription(ExceptionState&); |
75 | 77 |
76 void setRemoteDescription(RTCSessionDescription*, VoidCallback*, RTCErrorCal
lback*, ExceptionState&); | 78 void setRemoteDescription(RTCSessionDescription*, VoidCallback*, RTCErrorCal
lback*, ExceptionState&); |
77 RTCSessionDescription* remoteDescription(ExceptionState&); | 79 RTCSessionDescription* remoteDescription(ExceptionState&); |
78 | 80 |
79 String signalingState() const; | 81 String signalingState() const; |
80 | 82 |
81 void updateIce(const Dictionary& rtcConfiguration, const Dictionary& mediaCo
nstraints, ExceptionState&); | 83 void updateIce(const Dictionary& rtcConfiguration, const Dictionary& mediaCo
nstraints, ExceptionState&); |
82 | 84 |
| 85 static ScriptPromise generateCertificate(ScriptState*, const Dictionary& key
genAlgorithm, ExceptionState&); |
| 86 |
83 // DEPRECATED | 87 // DEPRECATED |
84 void addIceCandidate(RTCIceCandidate*, ExceptionState&); | 88 void addIceCandidate(RTCIceCandidate*, ExceptionState&); |
85 | 89 |
86 void addIceCandidate(RTCIceCandidate*, VoidCallback*, RTCErrorCallback*, Exc
eptionState&); | 90 void addIceCandidate(RTCIceCandidate*, VoidCallback*, RTCErrorCallback*, Exc
eptionState&); |
87 | 91 |
88 String iceGatheringState() const; | 92 String iceGatheringState() const; |
89 | 93 |
90 String iceConnectionState() const; | 94 String iceConnectionState() const; |
91 | 95 |
92 MediaStreamVector getLocalStreams() const; | 96 MediaStreamVector getLocalStreams() const; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; | 183 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; |
180 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 184 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; |
181 | 185 |
182 bool m_stopped; | 186 bool m_stopped; |
183 bool m_closed; | 187 bool m_closed; |
184 }; | 188 }; |
185 | 189 |
186 } // namespace blink | 190 } // namespace blink |
187 | 191 |
188 #endif // RTCPeerConnection_h | 192 #endif // RTCPeerConnection_h |
OLD | NEW |