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

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

Issue 2442763002: Convert Dictionary handling to RTCConfiguration IDL dictionary (Closed)
Patch Set: revert rtcpMuxPolicy default, also measure urls Created 4 years, 1 month 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 14 matching lines...) Expand all
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/ActiveScriptWrappable.h" 34 #include "bindings/core/v8/ActiveScriptWrappable.h"
35 #include "bindings/core/v8/Dictionary.h"
36 #include "bindings/core/v8/ScriptPromise.h" 35 #include "bindings/core/v8/ScriptPromise.h"
37 #include "core/dom/ActiveDOMObject.h" 36 #include "core/dom/ActiveDOMObject.h"
38 #include "modules/EventTargetModules.h" 37 #include "modules/EventTargetModules.h"
39 #include "modules/crypto/NormalizeAlgorithm.h" 38 #include "modules/crypto/NormalizeAlgorithm.h"
40 #include "modules/mediastream/MediaStream.h" 39 #include "modules/mediastream/MediaStream.h"
41 #include "modules/peerconnection/RTCIceCandidate.h" 40 #include "modules/peerconnection/RTCIceCandidate.h"
42 #include "platform/AsyncMethodRunner.h" 41 #include "platform/AsyncMethodRunner.h"
43 #include "public/platform/WebMediaConstraints.h" 42 #include "public/platform/WebMediaConstraints.h"
44 #include "public/platform/WebRTCPeerConnectionHandler.h" 43 #include "public/platform/WebRTCPeerConnectionHandler.h"
45 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" 44 #include "public/platform/WebRTCPeerConnectionHandlerClient.h"
46 #include <memory> 45 #include <memory>
47 46
48 namespace blink { 47 namespace blink {
49 class ExceptionState; 48 class ExceptionState;
50 class MediaStreamTrack; 49 class MediaStreamTrack;
51 class RTCAnswerOptions; 50 class RTCAnswerOptions;
51 class RTCConfiguration;
52 class RTCDTMFSender; 52 class RTCDTMFSender;
53 class RTCDataChannel; 53 class RTCDataChannel;
54 class RTCIceCandidateInitOrRTCIceCandidate; 54 class RTCIceCandidateInitOrRTCIceCandidate;
55 class RTCOfferOptions; 55 class RTCOfferOptions;
56 class RTCPeerConnectionErrorCallback; 56 class RTCPeerConnectionErrorCallback;
57 class RTCSessionDescription; 57 class RTCSessionDescription;
58 class RTCSessionDescriptionCallback; 58 class RTCSessionDescriptionCallback;
59 class RTCSessionDescriptionInit; 59 class RTCSessionDescriptionInit;
60 class RTCStatsCallback; 60 class RTCStatsCallback;
61 class ScriptState; 61 class ScriptState;
62 class VoidCallback; 62 class VoidCallback;
63 struct WebRTCConfiguration; 63 struct WebRTCConfiguration;
64 64
65 class RTCPeerConnection final : public EventTargetWithInlineData, 65 class RTCPeerConnection final : public EventTargetWithInlineData,
66 public WebRTCPeerConnectionHandlerClient, 66 public WebRTCPeerConnectionHandlerClient,
67 public ActiveScriptWrappable, 67 public ActiveScriptWrappable,
68 public ActiveDOMObject { 68 public ActiveDOMObject {
69 DEFINE_WRAPPERTYPEINFO(); 69 DEFINE_WRAPPERTYPEINFO();
70 USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection); 70 USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection);
71 USING_PRE_FINALIZER(RTCPeerConnection, dispose); 71 USING_PRE_FINALIZER(RTCPeerConnection, dispose);
72 72
73 public: 73 public:
74 static RTCPeerConnection* create(ExecutionContext*, 74 static RTCPeerConnection* create(ExecutionContext*,
75 const Dictionary&, 75 const RTCConfiguration&,
76 const Dictionary&, 76 const Dictionary&,
77 ExceptionState&); 77 ExceptionState&);
78 ~RTCPeerConnection() override; 78 ~RTCPeerConnection() override;
79 79
80 ScriptPromise createOffer(ScriptState*, const RTCOfferOptions&); 80 ScriptPromise createOffer(ScriptState*, const RTCOfferOptions&);
81 ScriptPromise createOffer(ScriptState*, 81 ScriptPromise createOffer(ScriptState*,
82 RTCSessionDescriptionCallback*, 82 RTCSessionDescriptionCallback*,
83 RTCPeerConnectionErrorCallback*, 83 RTCPeerConnectionErrorCallback*,
84 const Dictionary&); 84 const Dictionary&);
85 85
(...skipping 14 matching lines...) Expand all
100 ScriptPromise setRemoteDescription(ScriptState*, 100 ScriptPromise setRemoteDescription(ScriptState*,
101 const RTCSessionDescriptionInit&); 101 const RTCSessionDescriptionInit&);
102 ScriptPromise setRemoteDescription(ScriptState*, 102 ScriptPromise setRemoteDescription(ScriptState*,
103 const RTCSessionDescriptionInit&, 103 const RTCSessionDescriptionInit&,
104 VoidCallback*, 104 VoidCallback*,
105 RTCPeerConnectionErrorCallback*); 105 RTCPeerConnectionErrorCallback*);
106 RTCSessionDescription* remoteDescription(); 106 RTCSessionDescription* remoteDescription();
107 107
108 String signalingState() const; 108 String signalingState() const;
109 109
110 void updateIce(const Dictionary& rtcConfiguration, 110 void updateIce(ExecutionContext*,
111 const RTCConfiguration&,
111 const Dictionary& mediaConstraints, 112 const Dictionary& mediaConstraints,
112 ExceptionState&); 113 ExceptionState&);
113 114
114 // Certificate management 115 // Certificate management
115 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt 116 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt
116 static ScriptPromise generateCertificate( 117 static ScriptPromise generateCertificate(
117 ScriptState*, 118 ScriptState*,
118 const AlgorithmIdentifier& keygenAlgorithm, 119 const AlgorithmIdentifier& keygenAlgorithm,
119 ExceptionState&); 120 ExceptionState&);
120 121
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 bool m_stopped; 255 bool m_stopped;
255 bool m_closed; 256 bool m_closed;
256 257
257 bool m_hasDataChannels; // For RAPPOR metrics 258 bool m_hasDataChannels; // For RAPPOR metrics
258 }; 259 };
259 260
260 } // namespace blink 261 } // namespace blink
261 262
262 #endif // RTCPeerConnection_h 263 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698