WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164680
Refresh RTCDataChannel abstract infrastructure
https://bugs.webkit.org/show_bug.cgi?id=164680
Summary
Refresh RTCDataChannel abstract infrastructure
youenn fablet
Reported
2016-11-12 09:23:45 PST
To prepare for RTCDataChannel implementation, let's refresh what is there.
Attachments
Patch
(36.95 KB, patch)
2016-11-12 09:28 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(36.56 KB, patch)
2016-11-12 09:53 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(36.79 KB, patch)
2016-11-12 09:57 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(37.23 KB, patch)
2016-11-14 10:19 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2016-11-12 09:28:24 PST
Created
attachment 294614
[details]
Patch
youenn fablet
Comment 2
2016-11-12 09:53:29 PST
Created
attachment 294618
[details]
Patch
WebKit Commit Bot
Comment 3
2016-11-12 09:56:07 PST
Attachment 294618
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/mediastream/MediaEndpoint.cpp:47: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 1 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 4
2016-11-12 09:57:42 PST
Created
attachment 294619
[details]
Patch
WebKit Commit Bot
Comment 5
2016-11-12 09:58:56 PST
Attachment 294619
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/mediastream/MediaEndpoint.cpp:47: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 1 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 6
2016-11-12 21:16:44 PST
Comment on
attachment 294619
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=294619&action=review
> Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h:80 > + std::unique_ptr<RTCDataChannelHandler> createDataChannelHandler(const String&, const RTCDataChannelInit&) final;
Can this be private? Does it ever get called non-polymorphically on this class rather than the base class?
> Source/WebCore/Modules/mediastream/RTCDataChannel.h:50 > + static Ref<RTCDataChannel> create(ScriptExecutionContext*, std::unique_ptr<RTCDataChannelHandler>&&, String&&, RTCDataChannelInit&&);
Can this take a ScriptExecutionContext& instead?
> Source/WebCore/Modules/mediastream/RTCPeerConnection.idl:51 > +dictionary RTCDataChannelInit { > + boolean ordered = true; > + unsigned short maxRetransmitTime; > + unsigned short maxRetransmits; > + USVString protocol = ""; > + boolean negotiated = false; > + unsigned short id; > +};
WebKit coding style calls for *not* lining up in columns like this
> Source/WebCore/platform/mediastream/MediaEndpoint.cpp:57 > EmptyMediaEndpoint(MediaEndpointClient&) { }
I don’t understand why this constructor needs this ignored argument. I couldn’t fid the code that calls this; is it somehow shared or a template that works with more than one class? Also, if we are keeping it like this, it should be marked explicit since it has exactly one argument but should not be used for type conversion.
youenn fablet
Comment 7
2016-11-14 10:19:04 PST
Created
attachment 294711
[details]
Patch for landing
youenn fablet
Comment 8
2016-11-14 10:22:28 PST
Thanks for the review. (In reply to
comment #6
)
> Comment on
attachment 294619
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=294619&action=review
> > > Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h:80 > > + std::unique_ptr<RTCDataChannelHandler> createDataChannelHandler(const String&, const RTCDataChannelInit&) final; > > Can this be private? Does it ever get called non-polymorphically on this > class rather than the base class?
Right
> > Source/WebCore/Modules/mediastream/RTCDataChannel.h:50 > > + static Ref<RTCDataChannel> create(ScriptExecutionContext*, std::unique_ptr<RTCDataChannelHandler>&&, String&&, RTCDataChannelInit&&); > > Can this take a ScriptExecutionContext& instead?
Changed the IDL to pass a ScriptExecutionContext& directly.
> > Source/WebCore/Modules/mediastream/RTCPeerConnection.idl:51 > > +dictionary RTCDataChannelInit { > > + boolean ordered = true; > > + unsigned short maxRetransmitTime; > > + unsigned short maxRetransmits; > > + USVString protocol = ""; > > + boolean negotiated = false; > > + unsigned short id; > > +}; > > WebKit coding style calls for *not* lining up in columns like this
OK
> > Source/WebCore/platform/mediastream/MediaEndpoint.cpp:57 > > EmptyMediaEndpoint(MediaEndpointClient&) { } > > I don’t understand why this constructor needs this ignored argument. I > couldn’t fid the code that calls this; is it somehow shared or a template > that works with more than one class? > > Also, if we are keeping it like this, it should be marked explicit since it > has exactly one argument but should not be used for type conversion.
It's used by a function pointer who has this parameter. But the function could just not pass it to the constructor. Updated patch accordingly.
WebKit Commit Bot
Comment 9
2016-11-14 10:55:19 PST
Comment on
attachment 294711
[details]
Patch for landing Clearing flags on attachment: 294711 Committed
r208694
: <
http://trac.webkit.org/changeset/208694
>
WebKit Commit Bot
Comment 10
2016-11-14 10:55:22 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug