| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RTCStatsReport_h | 5 #ifndef RTCStatsReport_h |
| 6 #define RTCStatsReport_h | 6 #define RTCStatsReport_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Maplike.h" | 8 #include "bindings/core/v8/Maplike.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "platform/heap/GarbageCollected.h" | 10 #include "platform/heap/GarbageCollected.h" |
| 11 #include "platform/wtf/text/WTFString.h" |
| 11 #include "public/platform/WebCString.h" | 12 #include "public/platform/WebCString.h" |
| 12 #include "public/platform/WebRTCStats.h" | 13 #include "public/platform/WebRTCStats.h" |
| 13 #include "wtf/text/WTFString.h" | |
| 14 | 14 |
| 15 #include <map> | 15 #include <map> |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 // https://w3c.github.io/webrtc-pc/#rtcstatsreport-object | 19 // https://w3c.github.io/webrtc-pc/#rtcstatsreport-object |
| 20 class RTCStatsReport final : public GarbageCollectedFinalized<RTCStatsReport>, | 20 class RTCStatsReport final : public GarbageCollectedFinalized<RTCStatsReport>, |
| 21 public ScriptWrappable, | 21 public ScriptWrappable, |
| 22 public Maplike<String, v8::Local<v8::Value>> { | 22 public Maplike<String, v8::Local<v8::Value>> { |
| 23 DEFINE_WRAPPERTYPEINFO(); | 23 DEFINE_WRAPPERTYPEINFO(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 DEFINE_INLINE_VIRTUAL_TRACE() {} | 37 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 std::unique_ptr<WebRTCStatsReport> report_; | 40 std::unique_ptr<WebRTCStatsReport> report_; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace blink | 43 } // namespace blink |
| 44 | 44 |
| 45 #endif // RTCStatsReport_h | 45 #endif // RTCStatsReport_h |
| OLD | NEW |