diff options
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCStatsReport.cpp')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCStatsReport.cpp | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp b/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp index 27937eba3..146415b89 100644 --- a/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp +++ b/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp @@ -24,51 +24,12 @@ */ #include "config.h" - -#if ENABLE(MEDIA_STREAM) - #include "RTCStatsReport.h" -#include <wtf/text/StringHash.h> +#if ENABLE(WEB_RTC) namespace WebCore { -PassRefPtr<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 (HashMap<String, String>::const_iterator it = m_stats.begin(); it != m_stats.end(); ++it) { - result.append(it->key); - } - return result; -} - -const PassRefPtr<RTCStatsReport> RTCStatsReport::local() -{ - return this; -} - -const PassRefPtr<RTCStatsReport> RTCStatsReport::remote() -{ - return this; -} - -void RTCStatsReport::addStatistic(const String& name, const String& value) -{ - m_stats.add(name, value); -} - } // namespace WebCore -#endif // ENABLE(MEDIA_STREAM) +#endif // ENABLE(WEB_RTC) |