Diff
Modified: trunk/Source/WebCore/CMakeLists.txt (212328 => 212329)
--- 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)
@@ -238,7 +238,6 @@
Modules/mediastream/RTCRtpTransceiver.idl
Modules/mediastream/RTCSessionDescription.idl
Modules/mediastream/RTCStatsReport.idl
- Modules/mediastream/RTCStatsResponse.idl
Modules/mediastream/RTCTrackEvent.idl
Modules/navigatorcontentutils/NavigatorContentUtils.idl
@@ -923,7 +922,6 @@
Modules/mediastream/RTCRtpTransceiver.cpp
Modules/mediastream/RTCSessionDescription.cpp
Modules/mediastream/RTCStatsReport.cpp
- Modules/mediastream/RTCStatsResponse.cpp
Modules/mediastream/RTCTrackEvent.cpp
Modules/mediastream/SDPProcessor.cpp
Modules/mediastream/UserMediaController.cpp
Modified: trunk/Source/WebCore/ChangeLog (212328 => 212329)
--- 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)
@@ -1,3 +1,45 @@
+2017-02-14 Youenn Fablet <[email protected]>
+
+ [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.
+
2017-02-14 Karim H <[email protected]>
Removed unused methods of WebCore::FileStream
Modified: trunk/Source/WebCore/DerivedSources.cpp (212328 => 212329)
--- 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)
@@ -402,7 +402,6 @@
#include "JSRTCRtpSender.cpp"
#include "JSRTCSessionDescription.cpp"
#include "JSRTCStatsReport.cpp"
-#include "JSRTCStatsResponse.cpp"
#include "JSRTCTrackEvent.cpp"
#include "JSScreen.cpp"
#include "JSScriptProcessorNode.cpp"
Modified: trunk/Source/WebCore/DerivedSources.make (212328 => 212329)
--- 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)
@@ -179,7 +179,6 @@
$(WebCore)/Modules/mediastream/RTCRtpTransceiver.idl \
$(WebCore)/Modules/mediastream/RTCSessionDescription.idl \
$(WebCore)/Modules/mediastream/RTCStatsReport.idl \
- $(WebCore)/Modules/mediastream/RTCStatsResponse.idl \
$(WebCore)/Modules/mediastream/RTCTrackEvent.idl \
$(WebCore)/Modules/notifications/DOMWindowNotifications.idl \
$(WebCore)/Modules/notifications/Notification.idl \
Modified: trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp (212328 => 212329)
--- 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)
@@ -666,11 +666,9 @@
addIceCandidateSucceeded();
}
-void MediaEndpointPeerConnection::getStats(MediaStreamTrack*, Ref<DeferredPromise>&& promise)
+void MediaEndpointPeerConnection::getStats(MediaStreamTrack* track, Ref<DeferredPromise>&& promise)
{
- notImplemented();
-
- promise->reject(NOT_SUPPORTED_ERR);
+ m_mediaEndpoint->getStats(track, WTFMove(promise));
}
Vector<RefPtr<MediaStream>> MediaEndpointPeerConnection::getRemoteStreams() const
Modified: trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.h (212328 => 212329)
--- 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)
@@ -44,7 +44,7 @@
class MediaEndpointPeerConnection final : public PeerConnectionBackend, public MediaEndpointClient {
public:
- explicit MediaEndpointPeerConnection(RTCPeerConnection&);
+ WEBCORE_EXPORT explicit MediaEndpointPeerConnection(RTCPeerConnection&);
private:
RefPtr<RTCSessionDescription> localDescription() const final;
Modified: trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h (212328 => 212329)
--- 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)
@@ -46,7 +46,7 @@
class RTCRtpReceiver;
class RTCRtpSender;
class RTCSessionDescription;
-class RTCStatsResponse;
+class RTCStatsReport;
struct MediaEndpointConfiguration;
struct RTCAnswerOptions;
@@ -55,7 +55,7 @@
namespace PeerConnection {
using SessionDescriptionPromise = DOMPromise<IDLInterface<RTCSessionDescription>>;
-using StatsPromise = DOMPromise<IDLInterface<RTCStatsResponse>>;
+using StatsPromise = DOMPromise<IDLInterface<RTCStatsReport>>;
}
using CreatePeerConnectionBackend = std::unique_ptr<PeerConnectionBackend> (*)(RTCPeerConnection&);
Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp (212328 => 212329)
--- 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)
@@ -24,50 +24,12 @@
*/
#include "config.h"
+#include "RTCStatsReport.h"
#if ENABLE(WEB_RTC)
-#include "RTCStatsReport.h"
-
-#include <wtf/text/StringHash.h>
-
namespace WebCore {
-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);
-}
-
} // namespace WebCore
#endif // ENABLE(WEB_RTC)
Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h (212328 => 212329)
--- 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)
@@ -24,38 +24,17 @@
#pragma once
-#include "ScriptWrappable.h"
-#include <wtf/HashMap.h>
+#include <wtf/Ref.h>
#include <wtf/RefCounted.h>
-#include <wtf/Vector.h>
-#include <wtf/text/WTFString.h>
namespace WebCore {
-class RTCStatsReport : public RefCounted<RTCStatsReport>, public ScriptWrappable {
+class RTCStatsReport : public RefCounted<RTCStatsReport> {
public:
- static Ref<RTCStatsReport> create(const String& id, const String& type, double timestamp);
+ static Ref<RTCStatsReport> create() { return adoptRef(*new RTCStatsReport); }
- 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);
-
private:
- RTCStatsReport(const String& id, const String& type, double timestamp);
-
- String m_id;
- String m_type;
- double m_timestamp;
- HashMap<String, String> m_stats;
+ RTCStatsReport() = default;
};
} // namespace WebCore
Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.idl (212328 => 212329)
--- 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)
@@ -27,13 +27,6 @@
Conditional=WEB_RTC,
ImplementationLacksVTable,
] interface RTCStatsReport {
- 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;
+ // FIXME: Make it setlike
+ //readonly maplike<DOMString, object>;
};
Deleted: trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.cpp (212328 => 212329)
--- 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)
@@ -1,71 +0,0 @@
-/*
- * 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)
Deleted: trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.h (212328 => 212329)
--- 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)
@@ -1,59 +0,0 @@
-/*
- * 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
Deleted: trunk/Source/WebCore/Modules/mediastream/RTCStatsResponse.idl (212328 => 212329)
--- 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)
@@ -1,31 +0,0 @@
-/*
- * 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);
-};
Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp (212328 => 212329)
--- 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)
@@ -236,7 +236,7 @@
// FIXME: Fulfill promise with the report
UNUSED_PARAM(report);
- protectedThis->m_endpoint.m_peerConnectionBackend.iceCandidateFailed(protectedThis->m_promise, Exception { TypeError, ASCIILiteral("Stats API is not yet implemented") });
+ protectedThis->m_endpoint.m_peerConnectionBackend.getStatsFailed(protectedThis->m_promise, Exception { TypeError, ASCIILiteral("Stats API is not yet implemented") });
});
}
Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp (212328 => 212329)
--- 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)
@@ -29,7 +29,7 @@
#include "Document.h"
#include "IceCandidate.h"
-#include "JSRTCStatsResponse.h"
+#include "JSRTCStatsReport.h"
#include "LibWebRTCDataChannelHandler.h"
#include "LibWebRTCMediaEndpoint.h"
#include "MediaEndpointConfiguration.h"
@@ -106,14 +106,14 @@
m_endpoint->getStats(track, statsPromise);
}
-void LibWebRTCPeerConnectionBackend::iceCandidateSucceeded(const DeferredPromise& promise, Ref<RTCStatsResponse>&& response)
+void LibWebRTCPeerConnectionBackend::getStatsSucceeded(const DeferredPromise& promise, Ref<RTCStatsReport>&& report)
{
auto statsPromise = m_statsPromises.take(&promise);
ASSERT(statsPromise);
- statsPromise.value()->resolve<IDLInterface<RTCStatsResponse>>(WTFMove(response));
+ statsPromise.value()->resolve<IDLInterface<RTCStatsReport>>(WTFMove(report));
}
-void LibWebRTCPeerConnectionBackend::iceCandidateFailed(const DeferredPromise& promise, Exception&& exception)
+void LibWebRTCPeerConnectionBackend::getStatsFailed(const DeferredPromise& promise, Exception&& exception)
{
auto statsPromise = m_statsPromises.take(&promise);
ASSERT(statsPromise);
Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h (212328 => 212329)
--- 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)
@@ -38,6 +38,7 @@
class LibWebRTCMediaEndpoint;
class RTCRtpReceiver;
class RTCSessionDescription;
+class RTCstatsReport;
class RealtimeOutgoingAudioSource;
class RealtimeOutgoingVideoSource;
@@ -80,8 +81,8 @@
void addAudioSource(Ref<RealtimeOutgoingAudioSource>&&);
void addVideoSource(Ref<RealtimeOutgoingVideoSource>&&);
- void iceCandidateSucceeded(const DeferredPromise&, Ref<RTCStatsResponse>&&);
- void iceCandidateFailed(const DeferredPromise&, Exception&&);
+ void getStatsSucceeded(const DeferredPromise&, Ref<RTCStatsReport>&&);
+ void getStatsFailed(const DeferredPromise&, Exception&&);
private:
Ref<LibWebRTCMediaEndpoint> m_endpoint;
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (212328 => 212329)
--- 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)
@@ -194,7 +194,6 @@
078E090B17D14CEE00420AA1 /* RTCPeerConnection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B7717CEC32700848E51 /* RTCPeerConnection.cpp */; };
078E090C17D14CEE00420AA1 /* RTCSessionDescription.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B7A17CEC32700848E51 /* RTCSessionDescription.cpp */; };
078E090E17D14CEE00420AA1 /* RTCStatsReport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B8317CEC32700848E51 /* RTCStatsReport.cpp */; };
- 078E091017D14CEE00420AA1 /* RTCStatsResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B8817CEC32700848E51 /* RTCStatsResponse.cpp */; };
078E091217D14CEE00420AA1 /* UserMediaController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B8E17CEC32700848E51 /* UserMediaController.cpp */; };
078E091317D14CEE00420AA1 /* UserMediaRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B9017CEC32700848E51 /* UserMediaRequest.cpp */; };
078E091417D14D1C00420AA1 /* MediaConstraintsImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B4B17CEC32700848E51 /* MediaConstraintsImpl.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -212,7 +211,6 @@
078E092517D14D1C00420AA1 /* RTCPeerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B7817CEC32700848E51 /* RTCPeerConnection.h */; };
078E092617D14D1C00420AA1 /* RTCSessionDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B7B17CEC32700848E51 /* RTCSessionDescription.h */; settings = {ATTRIBUTES = (Private, ); }; };
078E092A17D14D1C00420AA1 /* RTCStatsReport.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8417CEC32700848E51 /* RTCStatsReport.h */; settings = {ATTRIBUTES = (Private, ); }; };
- 078E092C17D14D1C00420AA1 /* RTCStatsResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8917CEC32700848E51 /* RTCStatsResponse.h */; };
078E092E17D14D1C00420AA1 /* UserMediaClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8D17CEC32700848E51 /* UserMediaClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
078E092F17D14D1C00420AA1 /* UserMediaController.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B8F17CEC32700848E51 /* UserMediaController.h */; settings = {ATTRIBUTES = (Private, ); }; };
078E093017D14D1C00420AA1 /* UserMediaRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B9117CEC32700848E51 /* UserMediaRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -226,8 +224,6 @@
078E094217D16E1C00420AA1 /* RTCPeerConnectionHandlerClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAA17CF0AD400848E51 /* RTCPeerConnectionHandlerClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
078E094317D16E1C00420AA1 /* RTCSessionDescriptionDescriptor.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAC17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.h */; settings = {ATTRIBUTES = (Private, ); }; };
078E094417D16E1C00420AA1 /* RTCSessionDescriptionRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BAD17CF0AD400848E51 /* RTCSessionDescriptionRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
- 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, ); }; };
078E094717D16E1C00420AA1 /* RTCVoidRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221BB017CF0AD400848E51 /* RTCVoidRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
078E094B17D1709600420AA1 /* MediaStreamAudioDestinationNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 078E094817D1709600420AA1 /* MediaStreamAudioDestinationNode.cpp */; };
078E094C17D1709600420AA1 /* MediaStreamAudioDestinationNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 078E094917D1709600420AA1 /* MediaStreamAudioDestinationNode.h */; };
@@ -257,8 +253,6 @@
07969DBC17D14151007FF842 /* JSRTCSessionDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 07969DA217D14151007FF842 /* JSRTCSessionDescription.h */; };
07969DC117D14151007FF842 /* JSRTCStatsReport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07969DA717D14151007FF842 /* JSRTCStatsReport.cpp */; };
07969DC217D14151007FF842 /* JSRTCStatsReport.h in Headers */ = {isa = PBXBuildFile; fileRef = 07969DA817D14151007FF842 /* JSRTCStatsReport.h */; };
- 07969DC317D14151007FF842 /* JSRTCStatsResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07969DA917D14151007FF842 /* JSRTCStatsResponse.cpp */; };
- 07969DC417D14151007FF842 /* JSRTCStatsResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 07969DAA17D14151007FF842 /* JSRTCStatsResponse.h */; };
079D0868162F20E800DB8658 /* CaptionUserPreferences.h in Headers */ = {isa = PBXBuildFile; fileRef = 079D0867162F20E800DB8658 /* CaptionUserPreferences.h */; settings = {ATTRIBUTES = (Private, ); }; };
079D086B162F21F900DB8658 /* CaptionUserPreferencesMediaAF.h in Headers */ = {isa = PBXBuildFile; fileRef = 079D0869162F21F900DB8658 /* CaptionUserPreferencesMediaAF.h */; };
079D086C162F21F900DB8658 /* CaptionUserPreferencesMediaAF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 079D086A162F21F900DB8658 /* CaptionUserPreferencesMediaAF.cpp */; };
@@ -7210,9 +7204,6 @@
07221B8317CEC32700848E51 /* RTCStatsReport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTCStatsReport.cpp; sourceTree = "<group>"; };
07221B8417CEC32700848E51 /* RTCStatsReport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCStatsReport.h; sourceTree = "<group>"; };
07221B8517CEC32700848E51 /* RTCStatsReport.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RTCStatsReport.idl; sourceTree = "<group>"; };
- 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>"; };
07221B8D17CEC32700848E51 /* UserMediaClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMediaClient.h; sourceTree = "<group>"; };
07221B8E17CEC32700848E51 /* UserMediaController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UserMediaController.cpp; sourceTree = "<group>"; };
07221B8F17CEC32700848E51 /* UserMediaController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMediaController.h; sourceTree = "<group>"; };
@@ -7230,8 +7221,6 @@
07221BAB17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTCSessionDescriptionDescriptor.cpp; sourceTree = "<group>"; };
07221BAC17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCSessionDescriptionDescriptor.h; sourceTree = "<group>"; };
07221BAD17CF0AD400848E51 /* RTCSessionDescriptionRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCSessionDescriptionRequest.h; sourceTree = "<group>"; };
- 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>"; };
07221BB017CF0AD400848E51 /* RTCVoidRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCVoidRequest.h; sourceTree = "<group>"; };
07277E4017D018CC0015534D /* JSMediaStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMediaStream.cpp; sourceTree = "<group>"; };
07277E4117D018CC0015534D /* JSMediaStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMediaStream.h; sourceTree = "<group>"; };
@@ -7339,8 +7328,6 @@
07969DA217D14151007FF842 /* JSRTCSessionDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRTCSessionDescription.h; sourceTree = "<group>"; };
07969DA717D14151007FF842 /* JSRTCStatsReport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSRTCStatsReport.cpp; sourceTree = "<group>"; };
07969DA817D14151007FF842 /* JSRTCStatsReport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRTCStatsReport.h; sourceTree = "<group>"; };
- 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>"; };
079D0867162F20E800DB8658 /* CaptionUserPreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CaptionUserPreferences.h; sourceTree = "<group>"; };
079D0869162F21F900DB8658 /* CaptionUserPreferencesMediaAF.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CaptionUserPreferencesMediaAF.h; sourceTree = "<group>"; };
079D086A162F21F900DB8658 /* CaptionUserPreferencesMediaAF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CaptionUserPreferencesMediaAF.cpp; sourceTree = "<group>"; };
@@ -15396,9 +15383,6 @@
07221B8317CEC32700848E51 /* RTCStatsReport.cpp */,
07221B8417CEC32700848E51 /* RTCStatsReport.h */,
07221B8517CEC32700848E51 /* RTCStatsReport.idl */,
- 07221B8817CEC32700848E51 /* RTCStatsResponse.cpp */,
- 07221B8917CEC32700848E51 /* RTCStatsResponse.h */,
- 07221B8A17CEC32700848E51 /* RTCStatsResponse.idl */,
5E2C43641BCEE3720001E2BC /* RTCTrackEvent.cpp */,
5E2C43651BCEE3720001E2BC /* RTCTrackEvent.h */,
5E2C43661BCEE3720001E2BC /* RTCTrackEvent.idl */,
@@ -15457,8 +15441,6 @@
07221BAB17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.cpp */,
07221BAC17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.h */,
07221BAD17CF0AD400848E51 /* RTCSessionDescriptionRequest.h */,
- 07221BAE17CF0AD400848E51 /* RTCStatsRequest.h */,
- 07221BAF17CF0AD400848E51 /* RTCStatsResponseBase.h */,
07221BB017CF0AD400848E51 /* RTCVoidRequest.h */,
5EA3D6E51C85A9C300300BBB /* SDPProcessorScriptResource.cpp */,
5EA3D6E61C85A9C300300BBB /* SDPProcessorScriptResource.h */,
@@ -15606,8 +15588,6 @@
07969DA217D14151007FF842 /* JSRTCSessionDescription.h */,
07969DA717D14151007FF842 /* JSRTCStatsReport.cpp */,
07969DA817D14151007FF842 /* JSRTCStatsReport.h */,
- 07969DA917D14151007FF842 /* JSRTCStatsResponse.cpp */,
- 07969DAA17D14151007FF842 /* JSRTCStatsResponse.h */,
5E2C43691BCF05C80001E2BC /* JSRTCTrackEvent.cpp */,
5E2C436A1BCF05C80001E2BC /* JSRTCTrackEvent.h */,
);
@@ -26874,7 +26854,6 @@
5E2C43721BCF0D750001E2BD /* JSRTCRtpTransceiver.h in Headers */,
07969DBC17D14151007FF842 /* JSRTCSessionDescription.h in Headers */,
07969DC217D14151007FF842 /* JSRTCStatsReport.h in Headers */,
- 07969DC417D14151007FF842 /* JSRTCStatsResponse.h in Headers */,
5E2C436C1BCF071E0001E2BC /* JSRTCTrackEvent.h in Headers */,
BCEC01C30C274DDD009F4EC9 /* JSScreen.h in Headers */,
FDA15ECE12B03F61003A583A /* JSScriptProcessorNode.h in Headers */,
@@ -27914,9 +27893,6 @@
078E094317D16E1C00420AA1 /* RTCSessionDescriptionDescriptor.h in Headers */,
078E094417D16E1C00420AA1 /* RTCSessionDescriptionRequest.h in Headers */,
078E092A17D14D1C00420AA1 /* RTCStatsReport.h in Headers */,
- 078E094517D16E1C00420AA1 /* RTCStatsRequest.h in Headers */,
- 078E092C17D14D1C00420AA1 /* RTCStatsResponse.h in Headers */,
- 078E094617D16E1C00420AA1 /* RTCStatsResponseBase.h in Headers */,
5E2C43681BCEE3770001E2BC /* RTCTrackEvent.h in Headers */,
078E094717D16E1C00420AA1 /* RTCVoidRequest.h in Headers */,
5824ABA31AE81116009074B7 /* RubyElement.h in Headers */,
@@ -30719,7 +30695,6 @@
5E2C43711BCF0D750001E2BD /* JSRTCRtpTransceiver.cpp in Sources */,
07969DBB17D14151007FF842 /* JSRTCSessionDescription.cpp in Sources */,
07969DC117D14151007FF842 /* JSRTCStatsReport.cpp in Sources */,
- 07969DC317D14151007FF842 /* JSRTCStatsResponse.cpp in Sources */,
5E2C436B1BCF071E0001E2BC /* JSRTCTrackEvent.cpp in Sources */,
BCEC01C20C274DDD009F4EC9 /* JSScreen.cpp in Sources */,
FDA15ECD12B03F61003A583A /* JSScriptProcessorNode.cpp in Sources */,
@@ -31613,7 +31588,6 @@
078E090C17D14CEE00420AA1 /* RTCSessionDescription.cpp in Sources */,
073BE34E17D180B2002BD431 /* RTCSessionDescriptionDescriptor.cpp in Sources */,
078E090E17D14CEE00420AA1 /* RTCStatsReport.cpp in Sources */,
- 078E091017D14CEE00420AA1 /* RTCStatsResponse.cpp in Sources */,
5E2C43671BCEE3770001E2BC /* RTCTrackEvent.cpp in Sources */,
5824ABA21AE81116009074B7 /* RubyElement.cpp in Sources */,
5824ABA61AE81384009074B7 /* RubyTextElement.cpp in Sources */,
Modified: trunk/Source/WebCore/platform/mediastream/MediaEndpoint.h (212328 => 212329)
--- 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)
@@ -33,6 +33,7 @@
#if ENABLE(WEB_RTC)
#include "MediaEndpointConfiguration.h"
+#include "PeerConnectionBackend.h"
#include "RealtimeMediaSource.h"
#include <wtf/HashMap.h>
#include <wtf/text/WTFString.h>
@@ -42,6 +43,7 @@
class MediaEndpoint;
class MediaEndpointClient;
class MediaEndpointSessionConfiguration;
+class MediaStreamTrack;
class RTCDataChannelHandler;
class RealtimeMediaSource;
@@ -87,6 +89,8 @@
virtual void stop() = 0;
virtual void emulatePlatformEvent(const String&) { };
+
+ virtual void getStats(MediaStreamTrack*, PeerConnection::StatsPromise&& promise) { promise.reject(NOT_SUPPORTED_ERR); }
};
class MediaEndpointClient {
Deleted: trunk/Source/WebCore/platform/mediastream/RTCStatsRequest.h (212328 => 212329)
--- 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)
@@ -1,63 +0,0 @@
-/*
- * 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
Deleted: trunk/Source/WebCore/platform/mediastream/RTCStatsResponseBase.h (212328 => 212329)
--- 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)
@@ -1,48 +0,0 @@
-/*
- * 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
-