diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/mediastream/RTCStatsReport.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCStatsReport.h')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCStatsReport.h | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/Source/WebCore/Modules/mediastream/RTCStatsReport.h b/Source/WebCore/Modules/mediastream/RTCStatsReport.h index f7b8afe29..3f4918020 100644 --- a/Source/WebCore/Modules/mediastream/RTCStatsReport.h +++ b/Source/WebCore/Modules/mediastream/RTCStatsReport.h @@ -22,44 +22,19 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RTCStatsReport_h -#define RTCStatsReport_h +#pragma once -#include "ScriptWrappable.h" -#include <wtf/HashMap.h> -#include <wtf/PassRefPtr.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 PassRefPtr<RTCStatsReport> create(const String& id, const String& type, double timestamp); - - 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 - const PassRefPtr<RTCStatsReport> local(); - // DEPRECATED - const PassRefPtr<RTCStatsReport> remote(); - - void addStatistic(const String& name, const String& value); + static Ref<RTCStatsReport> create() { return adoptRef(*new RTCStatsReport); } 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 - -#endif // RTCStatsReport_h |