RESOLVED FIXED 93119
MediaStream API: Introduce RTCSessionDescription
https://bugs.webkit.org/show_bug.cgi?id=93119
Summary MediaStream API: Introduce RTCSessionDescription
Tommy Widenflycht
Reported 2012-08-03 07:21:09 PDT
Introduce RTCSessionDescription together with its corresponding WebCore/platform representation.
Attachments
Patch (26.77 KB, patch)
2012-08-03 07:37 PDT, Tommy Widenflycht
no flags
Patch (26.78 KB, patch)
2012-08-22 05:38 PDT, Tommy Widenflycht
no flags
Tommy Widenflycht
Comment 1 2012-08-03 07:37:54 PDT
Adam Barth
Comment 2 2012-08-03 10:03:56 PDT
Comment on attachment 156379 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156379&action=review > Source/WebCore/Modules/mediastream/RTCSessionDescription.cpp:43 > +namespace { > + > +bool verifyType(const String& type) Generally we prefer to use static functions rather than anonymous namespaces (when possible). > Source/WebCore/Modules/mediastream/RTCSessionDescription.h:58 > + String toString(); I couldn't find the implementation of this function. > Source/WebCore/Modules/mediastream/RTCSessionDescription.h:63 > + RTCSessionDescription(PassRefPtr<RTCSessionDescriptionDescriptor>); explicit
Tommy Widenflycht
Comment 3 2012-08-22 05:34:32 PDT
Comment on attachment 156379 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156379&action=review >> Source/WebCore/Modules/mediastream/RTCSessionDescription.cpp:43 >> +bool verifyType(const String& type) > > Generally we prefer to use static functions rather than anonymous namespaces (when possible). Fixed. >> Source/WebCore/Modules/mediastream/RTCSessionDescription.h:58 >> + String toString(); > > I couldn't find the implementation of this function. Removed for now. >> Source/WebCore/Modules/mediastream/RTCSessionDescription.h:63 >> + RTCSessionDescription(PassRefPtr<RTCSessionDescriptionDescriptor>); > > explicit Fixed.
Tommy Widenflycht
Comment 4 2012-08-22 05:38:38 PDT
Adam Barth
Comment 5 2012-08-22 12:09:54 PDT
Comment on attachment 159911 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=159911&action=review > Source/WebCore/Modules/mediastream/RTCSessionDescription.cpp:59 > + if (!ok || !sdp.length()) { !sdp.length() -> sdp.isEmpty() Would you be willing to post a follow-up patch with this tweak? > Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h:51 > + const String& type() { return m_type; } > + void setType(const String& type) { m_type = type; } > + > + const String& sdp() { return m_sdp; } > + void setSdp(const String& sdp) { m_sdp = sdp; } ekr points out that these could be const. We typically don't worry too much about const-correctness, but it's a nice-to-have.
WebKit Review Bot
Comment 6 2012-08-22 12:29:46 PDT
Comment on attachment 159911 [details] Patch Clearing flags on attachment: 159911 Committed r126333: <http://trac.webkit.org/changeset/126333>
WebKit Review Bot
Comment 7 2012-08-22 12:29:50 PDT
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.