Summary: | MediaStream API: Update RTCDataChannel | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Carlson <eric.carlson> | ||||
Component: | WebCore Misc. | Assignee: | Eric Carlson <eric.carlson> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | cdumez, commit-queue, esprehn+autocc, glenn, hta, jer.noble, kondapallykalyan, tommyw | ||||
Priority: | P2 | Keywords: | BlinkMergeCandidate | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 121101 | ||||||
Attachments: |
|
Description
Eric Carlson
2013-09-10 10:58:17 PDT
It make sense to also merge https://chromium.googlesource.com/chromium/blink/+/c3862b0a83e20fc8b1f770c7e4a886a7cceb80d2 (https://webkit.org/b/121104) here. Created attachment 211627 [details]
Proposed patch
I will need to update this patch once bug 120889 lands. Comment on attachment 211627 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=211627&action=review > Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:68 > + if (options.get("id", value)) > + initData.id = value; > + if (options.get("maxRetransmits", value)) > + initData.maxRetransmits = value; > + if (options.get("maxRetransmitTime", value)) > + initData.maxRetransmitTime = value; Can these be written without the if? Just options.get("id", initData.id)), etc? > Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:72 > + String protocolString; > + options.get("protocol", protocolString); > + initData.protocol = protocolString; Can this be written as options.get("protocol", initData.protocol); ? > Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:143 > + DEFINE_STATIC_LOCAL(String, connectingState, ("connecting", AtomicString::ConstructFromLiteral)); > + DEFINE_STATIC_LOCAL(String, openState, ("open", AtomicString::ConstructFromLiteral)); > + DEFINE_STATIC_LOCAL(String, closingState, ("closing", AtomicString::ConstructFromLiteral)); > + DEFINE_STATIC_LOCAL(String, closedState, ("closed", AtomicString::ConstructFromLiteral)); Can we use NeverDestroyed<> instead? Committed r155794: https://trac.webkit.org/r155794 |