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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // TODO(guidou): Many types are of the wrong type in this interface: 60 // TODO(guidou): Many types are of the wrong type in this interface:
61 // * Dictionary -> specific dictionary types like RTCConfiguration 61 // * Dictionary -> specific dictionary types like RTCConfiguration
62 // * VoidCallback -> VoidFunction 62 // * VoidCallback -> VoidFunction
63 [ 63 [
64 ActiveScriptWrappable, 64 ActiveScriptWrappable,
65 DependentLifetime, 65 DependentLifetime,
66 // TODO(guidou): There should only be one constructor argument, and it 66 // TODO(guidou): There should only be one constructor argument, and it
67 // should be optional. 67 // should be optional.
68 Constructor(Dictionary rtcConfiguration, optional Dictionary mediaConstraint s), 68 Constructor(Dictionary rtcConfiguration, optional Dictionary mediaConstraint s),
69 ConstructorCallWith=ExecutionContext, 69 ConstructorCallWith=ExecutionContext,
70 GarbageCollected,
71 NoInterfaceObject, 70 NoInterfaceObject,
72 RaisesException=Constructor, 71 RaisesException=Constructor,
73 ] interface RTCPeerConnection : EventTarget { 72 ] interface RTCPeerConnection : EventTarget {
74 [CallWith=ScriptState] Promise<RTCSessionDescription> createOffer(optional R TCOfferOptions options); 73 [CallWith=ScriptState] Promise<RTCSessionDescription> createOffer(optional R TCOfferOptions options);
75 [CallWith=ScriptState] Promise<RTCSessionDescription> createAnswer(optional RTCAnswerOptions options); 74 [CallWith=ScriptState] Promise<RTCSessionDescription> createAnswer(optional RTCAnswerOptions options);
76 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti onInit description); 75 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti onInit description);
77 readonly attribute RTCSessionDescription? localDescription; 76 readonly attribute RTCSessionDescription? localDescription;
78 // readonly attribute RTCSessionDescription? currentLocalDescription; 77 // readonly attribute RTCSessionDescription? currentLocalDescription;
79 // readonly attribute RTCSessionDescription? pendingLocalDescription; 78 // readonly attribute RTCSessionDescription? pendingLocalDescription;
80 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript ionInit description); 79 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript ionInit description);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 [CallWith=ExecutionContext, RaisesException] void addStream(MediaStream? str eam, optional Dictionary mediaConstraints); 123 [CallWith=ExecutionContext, RaisesException] void addStream(MediaStream? str eam, optional Dictionary mediaConstraints);
125 [RaisesException] void removeStream(MediaStream? stream); 124 [RaisesException] void removeStream(MediaStream? stream);
126 [RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack track); 125 [RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack track);
127 attribute EventHandler onaddstream; 126 attribute EventHandler onaddstream;
128 attribute EventHandler onremovestream; 127 attribute EventHandler onremovestream;
129 128
130 // Certificate management 129 // Certificate management
131 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt 130 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt
132 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm); 131 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm);
133 }; 132 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698