<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[212329] trunk/Source/WebCore</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/212329">212329</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2017-02-14 15:17:08 -0800 (Tue, 14 Feb 2017)</dd>
</dl>
<h3>Log Message</h3>
<pre>[WebRTC] Remove obsolete WebRTC stats API
https://bugs.webkit.org/show_bug.cgi?id=167910
Patch by Youenn Fablet <youenn@apple.com> on 2017-02-14
Reviewed by Alex Christensen.
No change of behavior as removed constructs are not functional.
Removing RTCStatsResponse which no longer exists and made RTCStatsReport an empty container for now.
* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* Modules/mediastream/MediaEndpointPeerConnection.cpp:
(WebCore::MediaEndpointPeerConnection::getStats):
* Modules/mediastream/MediaEndpointPeerConnection.h:
* Modules/mediastream/PeerConnectionBackend.h:
* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::getStats):
* Modules/mediastream/RTCStatsReport.cpp:
(WebCore::RTCStatsReport::create): Deleted.
(WebCore::RTCStatsReport::RTCStatsReport): Deleted.
(WebCore::RTCStatsReport::names): Deleted.
(WebCore::RTCStatsReport::local): Deleted.
(WebCore::RTCStatsReport::remote): Deleted.
(WebCore::RTCStatsReport::addStatistic): Deleted.
* Modules/mediastream/RTCStatsReport.h:
(WebCore::RTCStatsReport::create):
(WebCore::RTCStatsReport::timestamp): Deleted.
(WebCore::RTCStatsReport::id): Deleted.
(WebCore::RTCStatsReport::type): Deleted.
(WebCore::RTCStatsReport::stat): Deleted.
* Modules/mediastream/RTCStatsReport.idl:
* Modules/mediastream/RTCStatsResponse.cpp: Removed.
* Modules/mediastream/RTCStatsResponse.h: Removed.
* Modules/mediastream/RTCStatsResponse.idl: Removed.
* WebCore.xcodeproj/project.pbxproj:
* platform/mediastream/MediaEndpoint.h:
(WebCore::MediaEndpoint::getStats):
* platform/mediastream/RTCStatsRequest.h: Removed.
* platform/mediastream/RTCStatsResponseBase.h: Removed.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcescpp">trunk/Source/WebCore/DerivedSources.cpp</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesmake">trunk/Source/WebCore/DerivedSources.make</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaEndpointPeerConnectioncpp">trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaEndpointPeerConnectionh">trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamPeerConnectionBackendh">trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsReportcpp">trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsReporth">trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsReportidl">trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamlibwebrtcLibWebRTCMediaEndpointcpp">trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamlibwebrtcLibWebRTCPeerConnectionBackendcpp">trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamlibwebrtcLibWebRTCPeerConnectionBackendh">trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamMediaEndpointh">trunk/Source/WebCore/platform/mediastream/MediaEndpoint.h</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsResponsecpp">trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsResponseh">trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsResponseidl">trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.idl</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamRTCStatsRequesth">trunk/Source/WebCore/platform/mediastream/RTCStatsRequest.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamRTCStatsResponseBaseh">trunk/Source/WebCore/platform/mediastream/RTCStatsResponseBase.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/CMakeLists.txt        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -238,7 +238,6 @@
</span><span class="cx"> Modules/mediastream/RTCRtpTransceiver.idl
</span><span class="cx"> Modules/mediastream/RTCSessionDescription.idl
</span><span class="cx"> Modules/mediastream/RTCStatsReport.idl
</span><del>- Modules/mediastream/RTCStatsResponse.idl
</del><span class="cx"> Modules/mediastream/RTCTrackEvent.idl
</span><span class="cx">
</span><span class="cx"> Modules/navigatorcontentutils/NavigatorContentUtils.idl
</span><span class="lines">@@ -923,7 +922,6 @@
</span><span class="cx"> Modules/mediastream/RTCRtpTransceiver.cpp
</span><span class="cx"> Modules/mediastream/RTCSessionDescription.cpp
</span><span class="cx"> Modules/mediastream/RTCStatsReport.cpp
</span><del>- Modules/mediastream/RTCStatsResponse.cpp
</del><span class="cx"> Modules/mediastream/RTCTrackEvent.cpp
</span><span class="cx"> Modules/mediastream/SDPProcessor.cpp
</span><span class="cx"> Modules/mediastream/UserMediaController.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/ChangeLog        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -1,3 +1,45 @@
</span><ins>+2017-02-14 Youenn Fablet <youenn@apple.com>
+
+ [WebRTC] Remove obsolete WebRTC stats API
+ https://bugs.webkit.org/show_bug.cgi?id=167910
+
+ Reviewed by Alex Christensen.
+
+ No change of behavior as removed constructs are not functional.
+ Removing RTCStatsResponse which no longer exists and made RTCStatsReport an empty container for now.
+
+ * CMakeLists.txt:
+ * DerivedSources.cpp:
+ * DerivedSources.make:
+ * Modules/mediastream/MediaEndpointPeerConnection.cpp:
+ (WebCore::MediaEndpointPeerConnection::getStats):
+ * Modules/mediastream/MediaEndpointPeerConnection.h:
+ * Modules/mediastream/PeerConnectionBackend.h:
+ * Modules/mediastream/RTCPeerConnection.cpp:
+ (WebCore::RTCPeerConnection::getStats):
+ * Modules/mediastream/RTCStatsReport.cpp:
+ (WebCore::RTCStatsReport::create): Deleted.
+ (WebCore::RTCStatsReport::RTCStatsReport): Deleted.
+ (WebCore::RTCStatsReport::names): Deleted.
+ (WebCore::RTCStatsReport::local): Deleted.
+ (WebCore::RTCStatsReport::remote): Deleted.
+ (WebCore::RTCStatsReport::addStatistic): Deleted.
+ * Modules/mediastream/RTCStatsReport.h:
+ (WebCore::RTCStatsReport::create):
+ (WebCore::RTCStatsReport::timestamp): Deleted.
+ (WebCore::RTCStatsReport::id): Deleted.
+ (WebCore::RTCStatsReport::type): Deleted.
+ (WebCore::RTCStatsReport::stat): Deleted.
+ * Modules/mediastream/RTCStatsReport.idl:
+ * Modules/mediastream/RTCStatsResponse.cpp: Removed.
+ * Modules/mediastream/RTCStatsResponse.h: Removed.
+ * Modules/mediastream/RTCStatsResponse.idl: Removed.
+ * WebCore.xcodeproj/project.pbxproj:
+ * platform/mediastream/MediaEndpoint.h:
+ (WebCore::MediaEndpoint::getStats):
+ * platform/mediastream/RTCStatsRequest.h: Removed.
+ * platform/mediastream/RTCStatsResponseBase.h: Removed.
+
</ins><span class="cx"> 2017-02-14 Karim H <karim@karhm.com>
</span><span class="cx">
</span><span class="cx"> Removed unused methods of WebCore::FileStream
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.cpp (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.cpp        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/DerivedSources.cpp        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -402,7 +402,6 @@
</span><span class="cx"> #include "JSRTCRtpSender.cpp"
</span><span class="cx"> #include "JSRTCSessionDescription.cpp"
</span><span class="cx"> #include "JSRTCStatsReport.cpp"
</span><del>-#include "JSRTCStatsResponse.cpp"
</del><span class="cx"> #include "JSRTCTrackEvent.cpp"
</span><span class="cx"> #include "JSScreen.cpp"
</span><span class="cx"> #include "JSScriptProcessorNode.cpp"
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.make (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/DerivedSources.make        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -179,7 +179,6 @@
</span><span class="cx"> $(WebCore)/Modules/mediastream/RTCRtpTransceiver.idl \
</span><span class="cx"> $(WebCore)/Modules/mediastream/RTCSessionDescription.idl \
</span><span class="cx"> $(WebCore)/Modules/mediastream/RTCStatsReport.idl \
</span><del>- $(WebCore)/Modules/mediastream/RTCStatsResponse.idl \
</del><span class="cx"> $(WebCore)/Modules/mediastream/RTCTrackEvent.idl \
</span><span class="cx"> $(WebCore)/Modules/notifications/DOMWindowNotifications.idl \
</span><span class="cx"> $(WebCore)/Modules/notifications/Notification.idl \
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaEndpointPeerConnectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -666,11 +666,9 @@
</span><span class="cx"> addIceCandidateSucceeded();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void MediaEndpointPeerConnection::getStats(MediaStreamTrack*, Ref<DeferredPromise>&& promise)
</del><ins>+void MediaEndpointPeerConnection::getStats(MediaStreamTrack* track, Ref<DeferredPromise>&& promise)
</ins><span class="cx"> {
</span><del>- notImplemented();
-
- promise->reject(NOT_SUPPORTED_ERR);
</del><ins>+ m_mediaEndpoint->getStats(track, WTFMove(promise));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Vector<RefPtr<MediaStream>> MediaEndpointPeerConnection::getRemoteStreams() const
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaEndpointPeerConnectionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx">
</span><span class="cx"> class MediaEndpointPeerConnection final : public PeerConnectionBackend, public MediaEndpointClient {
</span><span class="cx"> public:
</span><del>- explicit MediaEndpointPeerConnection(RTCPeerConnection&);
</del><ins>+ WEBCORE_EXPORT explicit MediaEndpointPeerConnection(RTCPeerConnection&);
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> RefPtr<RTCSessionDescription> localDescription() const final;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamPeerConnectionBackendh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> class RTCRtpReceiver;
</span><span class="cx"> class RTCRtpSender;
</span><span class="cx"> class RTCSessionDescription;
</span><del>-class RTCStatsResponse;
</del><ins>+class RTCStatsReport;
</ins><span class="cx">
</span><span class="cx"> struct MediaEndpointConfiguration;
</span><span class="cx"> struct RTCAnswerOptions;
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">
</span><span class="cx"> namespace PeerConnection {
</span><span class="cx"> using SessionDescriptionPromise = DOMPromise<IDLInterface<RTCSessionDescription>>;
</span><del>-using StatsPromise = DOMPromise<IDLInterface<RTCStatsResponse>>;
</del><ins>+using StatsPromise = DOMPromise<IDLInterface<RTCStatsReport>>;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> using CreatePeerConnectionBackend = std::unique_ptr<PeerConnectionBackend> (*)(RTCPeerConnection&);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsReportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -24,50 +24,12 @@
</span><span class="cx"> */
</span><span class="cx">
</span><span class="cx"> #include "config.h"
</span><ins>+#include "RTCStatsReport.h"
</ins><span class="cx">
</span><span class="cx"> #if ENABLE(WEB_RTC)
</span><span class="cx">
</span><del>-#include "RTCStatsReport.h"
-
-#include <wtf/text/StringHash.h>
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<RTCStatsReport> RTCStatsReport::create(const String& id, const String& type, double timestamp)
-{
- return adoptRef(*new RTCStatsReport(id, type, timestamp));
-}
-
-RTCStatsReport::RTCStatsReport(const String& id, const String& type, double timestamp)
- : m_id(id)
- , m_type(type)
- , m_timestamp(timestamp)
-{
-}
-
-Vector<String> RTCStatsReport::names() const
-{
- Vector<String> result;
- for (auto& stat : m_stats.keys())
- result.append(stat);
- return result;
-}
-
-RTCStatsReport& RTCStatsReport::local()
-{
- return *this;
-}
-
-RTCStatsReport& RTCStatsReport::remote()
-{
- return *this;
-}
-
-void RTCStatsReport::addStatistic(const String& name, const String& value)
-{
- m_stats.add(name, value);
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span><span class="cx"> #endif // ENABLE(WEB_RTC)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsReporth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -24,38 +24,17 @@
</span><span class="cx">
</span><span class="cx"> #pragma once
</span><span class="cx">
</span><del>-#include "ScriptWrappable.h"
-#include <wtf/HashMap.h>
</del><ins>+#include <wtf/Ref.h>
</ins><span class="cx"> #include <wtf/RefCounted.h>
</span><del>-#include <wtf/Vector.h>
-#include <wtf/text/WTFString.h>
</del><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-class RTCStatsReport : public RefCounted<RTCStatsReport>, public ScriptWrappable {
</del><ins>+class RTCStatsReport : public RefCounted<RTCStatsReport> {
</ins><span class="cx"> public:
</span><del>- static Ref<RTCStatsReport> create(const String& id, const String& type, double timestamp);
</del><ins>+ static Ref<RTCStatsReport> create() { return adoptRef(*new RTCStatsReport); }
</ins><span class="cx">
</span><del>- double timestamp() const { return m_timestamp; }
- String id() { return m_id; }
- String type() { return m_type; }
- String stat(const String& name) { return m_stats.get(name); }
- Vector<String> names() const;
-
- // DEPRECATED
- RTCStatsReport& local();
- // DEPRECATED
- RTCStatsReport& remote();
-
- void addStatistic(const String& name, const String& value);
-
</del><span class="cx"> private:
</span><del>- RTCStatsReport(const String& id, const String& type, double timestamp);
-
- String m_id;
- String m_type;
- double m_timestamp;
- HashMap<String, String> m_stats;
</del><ins>+ RTCStatsReport() = default;
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsReportidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.idl (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.idl        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.idl        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -27,13 +27,6 @@
</span><span class="cx"> Conditional=WEB_RTC,
</span><span class="cx"> ImplementationLacksVTable,
</span><span class="cx"> ] interface RTCStatsReport {
</span><del>- readonly attribute Date timestamp;
- readonly attribute DOMString id;
- readonly attribute DOMString type;
- DOMString stat(DOMString name);
- sequence<DOMString> names();
-
- // DEPRECATED - fake for old RTCStatsElement object.
- readonly attribute RTCStatsReport local;
- readonly attribute RTCStatsReport remote;
</del><ins>+ // FIXME: Make it setlike
+ //readonly maplike<DOMString, object>;
</ins><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsResponsecpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.cpp (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.cpp        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.cpp        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -1,71 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-
-#if ENABLE(WEB_RTC)
-
-#include "RTCStatsResponse.h"
-#include <wtf/text/StringHash.h>
-
-namespace WebCore {
-
-Ref<RTCStatsResponse> RTCStatsResponse::create()
-{
- return adoptRef(*new RTCStatsResponse());
-}
-
-RTCStatsResponse::RTCStatsResponse()
-{
-}
-
-RefPtr<RTCStatsReport> RTCStatsResponse::namedItem(const AtomicString& name)
-{
- if (m_idmap.find(name) != m_idmap.end())
- return m_result[m_idmap.get(name)];
- return nullptr;
-}
-
-Vector<AtomicString> WebCore::RTCStatsResponse::supportedPropertyNames()
-{
- // FIXME: Should be implemented.
- return Vector<AtomicString>();
-}
-
-size_t RTCStatsResponse::addReport(String id, String type, double timestamp)
-{
- m_result.append(RTCStatsReport::create(id, type, timestamp));
- m_idmap.add(id, m_result.size() - 1);
- return m_result.size() - 1;
-}
-
-void RTCStatsResponse::addStatistic(size_t report, String name, String value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(report < m_result.size());
- m_result[report]->addStatistic(name, value);
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(WEB_RTC)
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsResponseh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -1,59 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "ActiveDOMObject.h"
-#include "DOMError.h"
-#include "DOMStringList.h"
-#include "Event.h"
-#include "EventListener.h"
-#include "EventTarget.h"
-#include "MediaStreamTrack.h"
-#include "RTCStatsReport.h"
-#include "RTCStatsResponseBase.h"
-#include "ScriptWrappable.h"
-#include <wtf/HashMap.h>
-
-namespace WebCore {
-
-class RTCStatsResponse : public RTCStatsResponseBase, public ScriptWrappable {
-public:
- static Ref<RTCStatsResponse> create();
-
- const Vector<RefPtr<RTCStatsReport>>& result() const { return m_result; };
-
- RefPtr<RTCStatsReport> namedItem(const AtomicString&);
- Vector<AtomicString> supportedPropertyNames();
-
- size_t addReport(String id, String type, double timestamp) override;
- void addStatistic(size_t report, String name, String value) override;
-
-private:
- RTCStatsResponse();
- Vector<RefPtr<RTCStatsReport>> m_result;
- HashMap<String, int> m_idmap;
-};
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsResponseidl"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.idl (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.idl        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.idl        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -1,31 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-[
- NoInterfaceObject,
- Conditional=WEB_RTC,
-] interface RTCStatsResponse {
- sequence<RTCStatsReport> result();
- getter RTCStatsReport? namedItem(DOMString name);
-};
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamlibwebrtcLibWebRTCMediaEndpointcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx"> // FIXME: Fulfill promise with the report
</span><span class="cx"> UNUSED_PARAM(report);
</span><span class="cx">
</span><del>- protectedThis->m_endpoint.m_peerConnectionBackend.iceCandidateFailed(protectedThis->m_promise, Exception { TypeError, ASCIILiteral("Stats API is not yet implemented") });
</del><ins>+ protectedThis->m_endpoint.m_peerConnectionBackend.getStatsFailed(protectedThis->m_promise, Exception { TypeError, ASCIILiteral("Stats API is not yet implemented") });
</ins><span class="cx"> });
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamlibwebrtcLibWebRTCPeerConnectionBackendcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">
</span><span class="cx"> #include "Document.h"
</span><span class="cx"> #include "IceCandidate.h"
</span><del>-#include "JSRTCStatsResponse.h"
</del><ins>+#include "JSRTCStatsReport.h"
</ins><span class="cx"> #include "LibWebRTCDataChannelHandler.h"
</span><span class="cx"> #include "LibWebRTCMediaEndpoint.h"
</span><span class="cx"> #include "MediaEndpointConfiguration.h"
</span><span class="lines">@@ -106,14 +106,14 @@
</span><span class="cx"> m_endpoint->getStats(track, statsPromise);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void LibWebRTCPeerConnectionBackend::iceCandidateSucceeded(const DeferredPromise& promise, Ref<RTCStatsResponse>&& response)
</del><ins>+void LibWebRTCPeerConnectionBackend::getStatsSucceeded(const DeferredPromise& promise, Ref<RTCStatsReport>&& report)
</ins><span class="cx"> {
</span><span class="cx"> auto statsPromise = m_statsPromises.take(&promise);
</span><span class="cx"> ASSERT(statsPromise);
</span><del>- statsPromise.value()->resolve<IDLInterface<RTCStatsResponse>>(WTFMove(response));
</del><ins>+ statsPromise.value()->resolve<IDLInterface<RTCStatsReport>>(WTFMove(report));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void LibWebRTCPeerConnectionBackend::iceCandidateFailed(const DeferredPromise& promise, Exception&& exception)
</del><ins>+void LibWebRTCPeerConnectionBackend::getStatsFailed(const DeferredPromise& promise, Exception&& exception)
</ins><span class="cx"> {
</span><span class="cx"> auto statsPromise = m_statsPromises.take(&promise);
</span><span class="cx"> ASSERT(statsPromise);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamlibwebrtcLibWebRTCPeerConnectionBackendh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -38,6 +38,7 @@
</span><span class="cx"> class LibWebRTCMediaEndpoint;
</span><span class="cx"> class RTCRtpReceiver;
</span><span class="cx"> class RTCSessionDescription;
</span><ins>+class RTCstatsReport;
</ins><span class="cx"> class RealtimeOutgoingAudioSource;
</span><span class="cx"> class RealtimeOutgoingVideoSource;
</span><span class="cx">
</span><span class="lines">@@ -80,8 +81,8 @@
</span><span class="cx"> void addAudioSource(Ref<RealtimeOutgoingAudioSource>&&);
</span><span class="cx"> void addVideoSource(Ref<RealtimeOutgoingVideoSource>&&);
</span><span class="cx">
</span><del>- void iceCandidateSucceeded(const DeferredPromise&, Ref<RTCStatsResponse>&&);
- void iceCandidateFailed(const DeferredPromise&, Exception&&);
</del><ins>+ void getStatsSucceeded(const DeferredPromise&, Ref<RTCStatsReport>&&);
+ void getStatsFailed(const DeferredPromise&, Exception&&);
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> Ref<LibWebRTCMediaEndpoint> m_endpoint;
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -194,7 +194,6 @@
</span><span class="cx">                 078E090B17D14CEE00420AA1 /* RTCPeerConnection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B7717CEC32700848E51 /* RTCPeerConnection.cpp */; };
</span><span class="cx">                 078E090C17D14CEE00420AA1 /* RTCSessionDescription.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B7A17CEC32700848E51 /* RTCSessionDescription.cpp */; };
</span><span class="cx">                 078E090E17D14CEE00420AA1 /* RTCStatsReport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B8317CEC32700848E51 /* RTCStatsReport.cpp */; };
</span><del>-                078E091017D14CEE00420AA1 /* RTCStatsResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B8817CEC32700848E51 /* RTCStatsResponse.cpp */; };
</del><span class="cx">                 078E091217D14CEE00420AA1 /* UserMediaController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B8E17CEC32700848E51 /* UserMediaController.cpp */; };
</span><span class="cx">                 078E091317D14CEE00420AA1 /* UserMediaRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B9017CEC32700848E51 /* UserMediaRequest.cpp */; };
</span><span class="cx">                 078E091417D14D1C00420AA1 /* MediaConstraintsImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B4B17CEC32700848E51 /* MediaConstraintsImpl.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -212,7 +211,6 @@
</span><span class="cx">                 078E092517D14D1C00420AA1 /* RTCPeerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B7817CEC32700848E51 /* RTCPeerConnection.h */; };
</span><span class="cx">                 078E092617D14D1C00420AA1 /* RTCSessionDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B7B17CEC32700848E51 /* RTCSessionDescription.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E092A17D14D1C00420AA1 /* RTCStatsReport.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8417CEC32700848E51 /* RTCStatsReport.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                078E092C17D14D1C00420AA1 /* RTCStatsResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8917CEC32700848E51 /* RTCStatsResponse.h */; };
</del><span class="cx">                 078E092E17D14D1C00420AA1 /* UserMediaClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8D17CEC32700848E51 /* UserMediaClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E092F17D14D1C00420AA1 /* UserMediaController.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8F17CEC32700848E51 /* UserMediaController.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E093017D14D1C00420AA1 /* UserMediaRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B9117CEC32700848E51 /* UserMediaRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -226,8 +224,6 @@
</span><span class="cx">                 078E094217D16E1C00420AA1 /* RTCPeerConnectionHandlerClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAA17CF0AD400848E51 /* RTCPeerConnectionHandlerClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E094317D16E1C00420AA1 /* RTCSessionDescriptionDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAC17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E094417D16E1C00420AA1 /* RTCSessionDescriptionRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAD17CF0AD400848E51 /* RTCSessionDescriptionRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                078E094517D16E1C00420AA1 /* RTCStatsRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAE17CF0AD400848E51 /* RTCStatsRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
-                078E094617D16E1C00420AA1 /* RTCStatsResponseBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAF17CF0AD400848E51 /* RTCStatsResponseBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 078E094717D16E1C00420AA1 /* RTCVoidRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BB017CF0AD400848E51 /* RTCVoidRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E094B17D1709600420AA1 /* MediaStreamAudioDestinationNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 078E094817D1709600420AA1 /* MediaStreamAudioDestinationNode.cpp */; };
</span><span class="cx">                 078E094C17D1709600420AA1 /* MediaStreamAudioDestinationNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 078E094917D1709600420AA1 /* MediaStreamAudioDestinationNode.h */; };
</span><span class="lines">@@ -257,8 +253,6 @@
</span><span class="cx">                 07969DBC17D14151007FF842 /* JSRTCSessionDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 07969DA217D14151007FF842 /* JSRTCSessionDescription.h */; };
</span><span class="cx">                 07969DC117D14151007FF842 /* JSRTCStatsReport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07969DA717D14151007FF842 /* JSRTCStatsReport.cpp */; };
</span><span class="cx">                 07969DC217D14151007FF842 /* JSRTCStatsReport.h in Headers */ = {isa = PBXBuildFile; fileRef = 07969DA817D14151007FF842 /* JSRTCStatsReport.h */; };
</span><del>-                07969DC317D14151007FF842 /* JSRTCStatsResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07969DA917D14151007FF842 /* JSRTCStatsResponse.cpp */; };
-                07969DC417D14151007FF842 /* JSRTCStatsResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 07969DAA17D14151007FF842 /* JSRTCStatsResponse.h */; };
</del><span class="cx">                 079D0868162F20E800DB8658 /* CaptionUserPreferences.h in Headers */ = {isa = PBXBuildFile; fileRef = 079D0867162F20E800DB8658 /* CaptionUserPreferences.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 079D086B162F21F900DB8658 /* CaptionUserPreferencesMediaAF.h in Headers */ = {isa = PBXBuildFile; fileRef = 079D0869162F21F900DB8658 /* CaptionUserPreferencesMediaAF.h */; };
</span><span class="cx">                 079D086C162F21F900DB8658 /* CaptionUserPreferencesMediaAF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 079D086A162F21F900DB8658 /* CaptionUserPreferencesMediaAF.cpp */; };
</span><span class="lines">@@ -7210,9 +7204,6 @@
</span><span class="cx">                 07221B8317CEC32700848E51 /* RTCStatsReport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTCStatsReport.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 07221B8417CEC32700848E51 /* RTCStatsReport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCStatsReport.h; sourceTree = "<group>"; };
</span><span class="cx">                 07221B8517CEC32700848E51 /* RTCStatsReport.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RTCStatsReport.idl; sourceTree = "<group>"; };
</span><del>-                07221B8817CEC32700848E51 /* RTCStatsResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTCStatsResponse.cpp; sourceTree = "<group>"; };
-                07221B8917CEC32700848E51 /* RTCStatsResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCStatsResponse.h; sourceTree = "<group>"; };
-                07221B8A17CEC32700848E51 /* RTCStatsResponse.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RTCStatsResponse.idl; sourceTree = "<group>"; };
</del><span class="cx">                 07221B8D17CEC32700848E51 /* UserMediaClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMediaClient.h; sourceTree = "<group>"; };
</span><span class="cx">                 07221B8E17CEC32700848E51 /* UserMediaController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UserMediaController.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 07221B8F17CEC32700848E51 /* UserMediaController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMediaController.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -7230,8 +7221,6 @@
</span><span class="cx">                 07221BAB17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTCSessionDescriptionDescriptor.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 07221BAC17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCSessionDescriptionDescriptor.h; sourceTree = "<group>"; };
</span><span class="cx">                 07221BAD17CF0AD400848E51 /* RTCSessionDescriptionRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCSessionDescriptionRequest.h; sourceTree = "<group>"; };
</span><del>-                07221BAE17CF0AD400848E51 /* RTCStatsRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCStatsRequest.h; sourceTree = "<group>"; };
-                07221BAF17CF0AD400848E51 /* RTCStatsResponseBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCStatsResponseBase.h; sourceTree = "<group>"; };
</del><span class="cx">                 07221BB017CF0AD400848E51 /* RTCVoidRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCVoidRequest.h; sourceTree = "<group>"; };
</span><span class="cx">                 07277E4017D018CC0015534D /* JSMediaStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMediaStream.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 07277E4117D018CC0015534D /* JSMediaStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMediaStream.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -7339,8 +7328,6 @@
</span><span class="cx">                 07969DA217D14151007FF842 /* JSRTCSessionDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRTCSessionDescription.h; sourceTree = "<group>"; };
</span><span class="cx">                 07969DA717D14151007FF842 /* JSRTCStatsReport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSRTCStatsReport.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 07969DA817D14151007FF842 /* JSRTCStatsReport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRTCStatsReport.h; sourceTree = "<group>"; };
</span><del>-                07969DA917D14151007FF842 /* JSRTCStatsResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSRTCStatsResponse.cpp; sourceTree = "<group>"; };
-                07969DAA17D14151007FF842 /* JSRTCStatsResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRTCStatsResponse.h; sourceTree = "<group>"; };
</del><span class="cx">                 079D0867162F20E800DB8658 /* CaptionUserPreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CaptionUserPreferences.h; sourceTree = "<group>"; };
</span><span class="cx">                 079D0869162F21F900DB8658 /* CaptionUserPreferencesMediaAF.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CaptionUserPreferencesMediaAF.h; sourceTree = "<group>"; };
</span><span class="cx">                 079D086A162F21F900DB8658 /* CaptionUserPreferencesMediaAF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CaptionUserPreferencesMediaAF.cpp; sourceTree = "<group>"; };
</span><span class="lines">@@ -15396,9 +15383,6 @@
</span><span class="cx">                                 07221B8317CEC32700848E51 /* RTCStatsReport.cpp */,
</span><span class="cx">                                 07221B8417CEC32700848E51 /* RTCStatsReport.h */,
</span><span class="cx">                                 07221B8517CEC32700848E51 /* RTCStatsReport.idl */,
</span><del>-                                07221B8817CEC32700848E51 /* RTCStatsResponse.cpp */,
-                                07221B8917CEC32700848E51 /* RTCStatsResponse.h */,
-                                07221B8A17CEC32700848E51 /* RTCStatsResponse.idl */,
</del><span class="cx">                                 5E2C43641BCEE3720001E2BC /* RTCTrackEvent.cpp */,
</span><span class="cx">                                 5E2C43651BCEE3720001E2BC /* RTCTrackEvent.h */,
</span><span class="cx">                                 5E2C43661BCEE3720001E2BC /* RTCTrackEvent.idl */,
</span><span class="lines">@@ -15457,8 +15441,6 @@
</span><span class="cx">                                 07221BAB17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.cpp */,
</span><span class="cx">                                 07221BAC17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.h */,
</span><span class="cx">                                 07221BAD17CF0AD400848E51 /* RTCSessionDescriptionRequest.h */,
</span><del>-                                07221BAE17CF0AD400848E51 /* RTCStatsRequest.h */,
-                                07221BAF17CF0AD400848E51 /* RTCStatsResponseBase.h */,
</del><span class="cx">                                 07221BB017CF0AD400848E51 /* RTCVoidRequest.h */,
</span><span class="cx">                                 5EA3D6E51C85A9C300300BBB /* SDPProcessorScriptResource.cpp */,
</span><span class="cx">                                 5EA3D6E61C85A9C300300BBB /* SDPProcessorScriptResource.h */,
</span><span class="lines">@@ -15606,8 +15588,6 @@
</span><span class="cx">                                 07969DA217D14151007FF842 /* JSRTCSessionDescription.h */,
</span><span class="cx">                                 07969DA717D14151007FF842 /* JSRTCStatsReport.cpp */,
</span><span class="cx">                                 07969DA817D14151007FF842 /* JSRTCStatsReport.h */,
</span><del>-                                07969DA917D14151007FF842 /* JSRTCStatsResponse.cpp */,
-                                07969DAA17D14151007FF842 /* JSRTCStatsResponse.h */,
</del><span class="cx">                                 5E2C43691BCF05C80001E2BC /* JSRTCTrackEvent.cpp */,
</span><span class="cx">                                 5E2C436A1BCF05C80001E2BC /* JSRTCTrackEvent.h */,
</span><span class="cx">                         );
</span><span class="lines">@@ -26874,7 +26854,6 @@
</span><span class="cx">                                 5E2C43721BCF0D750001E2BD /* JSRTCRtpTransceiver.h in Headers */,
</span><span class="cx">                                 07969DBC17D14151007FF842 /* JSRTCSessionDescription.h in Headers */,
</span><span class="cx">                                 07969DC217D14151007FF842 /* JSRTCStatsReport.h in Headers */,
</span><del>-                                07969DC417D14151007FF842 /* JSRTCStatsResponse.h in Headers */,
</del><span class="cx">                                 5E2C436C1BCF071E0001E2BC /* JSRTCTrackEvent.h in Headers */,
</span><span class="cx">                                 BCEC01C30C274DDD009F4EC9 /* JSScreen.h in Headers */,
</span><span class="cx">                                 FDA15ECE12B03F61003A583A /* JSScriptProcessorNode.h in Headers */,
</span><span class="lines">@@ -27914,9 +27893,6 @@
</span><span class="cx">                                 078E094317D16E1C00420AA1 /* RTCSessionDescriptionDescriptor.h in Headers */,
</span><span class="cx">                                 078E094417D16E1C00420AA1 /* RTCSessionDescriptionRequest.h in Headers */,
</span><span class="cx">                                 078E092A17D14D1C00420AA1 /* RTCStatsReport.h in Headers */,
</span><del>-                                078E094517D16E1C00420AA1 /* RTCStatsRequest.h in Headers */,
-                                078E092C17D14D1C00420AA1 /* RTCStatsResponse.h in Headers */,
-                                078E094617D16E1C00420AA1 /* RTCStatsResponseBase.h in Headers */,
</del><span class="cx">                                 5E2C43681BCEE3770001E2BC /* RTCTrackEvent.h in Headers */,
</span><span class="cx">                                 078E094717D16E1C00420AA1 /* RTCVoidRequest.h in Headers */,
</span><span class="cx">                                 5824ABA31AE81116009074B7 /* RubyElement.h in Headers */,
</span><span class="lines">@@ -30719,7 +30695,6 @@
</span><span class="cx">                                 5E2C43711BCF0D750001E2BD /* JSRTCRtpTransceiver.cpp in Sources */,
</span><span class="cx">                                 07969DBB17D14151007FF842 /* JSRTCSessionDescription.cpp in Sources */,
</span><span class="cx">                                 07969DC117D14151007FF842 /* JSRTCStatsReport.cpp in Sources */,
</span><del>-                                07969DC317D14151007FF842 /* JSRTCStatsResponse.cpp in Sources */,
</del><span class="cx">                                 5E2C436B1BCF071E0001E2BC /* JSRTCTrackEvent.cpp in Sources */,
</span><span class="cx">                                 BCEC01C20C274DDD009F4EC9 /* JSScreen.cpp in Sources */,
</span><span class="cx">                                 FDA15ECD12B03F61003A583A /* JSScriptProcessorNode.cpp in Sources */,
</span><span class="lines">@@ -31613,7 +31588,6 @@
</span><span class="cx">                                 078E090C17D14CEE00420AA1 /* RTCSessionDescription.cpp in Sources */,
</span><span class="cx">                                 073BE34E17D180B2002BD431 /* RTCSessionDescriptionDescriptor.cpp in Sources */,
</span><span class="cx">                                 078E090E17D14CEE00420AA1 /* RTCStatsReport.cpp in Sources */,
</span><del>-                                078E091017D14CEE00420AA1 /* RTCStatsResponse.cpp in Sources */,
</del><span class="cx">                                 5E2C43671BCEE3770001E2BC /* RTCTrackEvent.cpp in Sources */,
</span><span class="cx">                                 5824ABA21AE81116009074B7 /* RubyElement.cpp in Sources */,
</span><span class="cx">                                 5824ABA61AE81384009074B7 /* RubyTextElement.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamMediaEndpointh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/MediaEndpoint.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/MediaEndpoint.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/platform/mediastream/MediaEndpoint.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> #if ENABLE(WEB_RTC)
</span><span class="cx">
</span><span class="cx"> #include "MediaEndpointConfiguration.h"
</span><ins>+#include "PeerConnectionBackend.h"
</ins><span class="cx"> #include "RealtimeMediaSource.h"
</span><span class="cx"> #include <wtf/HashMap.h>
</span><span class="cx"> #include <wtf/text/WTFString.h>
</span><span class="lines">@@ -42,6 +43,7 @@
</span><span class="cx"> class MediaEndpoint;
</span><span class="cx"> class MediaEndpointClient;
</span><span class="cx"> class MediaEndpointSessionConfiguration;
</span><ins>+class MediaStreamTrack;
</ins><span class="cx"> class RTCDataChannelHandler;
</span><span class="cx"> class RealtimeMediaSource;
</span><span class="cx">
</span><span class="lines">@@ -87,6 +89,8 @@
</span><span class="cx"> virtual void stop() = 0;
</span><span class="cx">
</span><span class="cx"> virtual void emulatePlatformEvent(const String&) { };
</span><ins>+
+ virtual void getStats(MediaStreamTrack*, PeerConnection::StatsPromise&& promise) { promise.reject(NOT_SUPPORTED_ERR); }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class MediaEndpointClient {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamRTCStatsRequesth"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/mediastream/RTCStatsRequest.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/RTCStatsRequest.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/platform/mediastream/RTCStatsRequest.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -1,63 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name of Google Inc. nor the names of its contributors
- * may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef RTCStatsRequest_h
-#define RTCStatsRequest_h
-
-#if ENABLE(WEB_RTC)
-
-#include <wtf/PassRefPtr.h>
-#include <wtf/RefCounted.h>
-#include <wtf/text/WTFString.h>
-
-namespace WebCore {
-
-class MediaStreamTrackPrivate;
-class RTCStatsResponseBase;
-
-class RTCStatsRequest : public RefCounted<RTCStatsRequest> {
-public:
- virtual ~RTCStatsRequest() { }
-
- virtual PassRefPtr<RTCStatsResponseBase> createResponse() = 0;
- virtual bool hasSelector() = 0;
- virtual MediaStreamTrackPrivate* track() = 0;
- virtual void requestSucceeded(PassRefPtr<RTCStatsResponseBase>) = 0;
- virtual void requestFailed(const String&) = 0;
-
-protected:
- RTCStatsRequest() { }
-};
-
-} // namespace WebCore
-
-#endif // ENABLE(WEB_RTC)
-
-#endif // RTCStatsRequest_h
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamRTCStatsResponseBaseh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/mediastream/RTCStatsResponseBase.h (212328 => 212329)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/RTCStatsResponseBase.h        2017-02-14 23:16:52 UTC (rev 212328)
+++ trunk/Source/WebCore/platform/mediastream/RTCStatsResponseBase.h        2017-02-14 23:17:08 UTC (rev 212329)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef RTCStatsResponseBase_h
-#define RTCStatsResponseBase_h
-
-#if ENABLE(WEB_RTC)
-
-#include <wtf/RefCounted.h>
-#include <wtf/text/WTFString.h>
-
-namespace WebCore {
-
-class RTCStatsResponseBase : public RefCounted<RTCStatsResponseBase> {
-public:
- virtual ~RTCStatsResponseBase() { }
-
- virtual size_t addReport(String id, String type, double timestamp) = 0;
- virtual void addStatistic(size_t report, String name, String value) = 0;
-};
-
-} // namespace WebCore
-
-#endif // ENABLE(WEB_RTC)
-
-#endif // RTCStatsResponseBase_h
-
</del></span></pre>
</div>
</div>
</body>
</html>