| Index: webrtc/stats/rtcstats_objects.cc
|
| diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc
|
| index c435908dc461fb3c692898d84bfce4c3d4a8dc35..3069146bd3d408a000429ae61b0f9e94343799a4 100644
|
| --- a/webrtc/stats/rtcstats_objects.cc
|
| +++ b/webrtc/stats/rtcstats_objects.cc
|
| @@ -12,7 +12,9 @@
|
|
|
| namespace webrtc {
|
|
|
| -const char RTCPeerConnectionStats::kType[] = "peer-connection";
|
| +WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection",
|
| + &data_channels_opened,
|
| + &data_channels_closed);
|
|
|
| RTCPeerConnectionStats::RTCPeerConnectionStats(
|
| const std::string& id, int64_t timestamp_us)
|
| @@ -26,4 +28,14 @@ RTCPeerConnectionStats::RTCPeerConnectionStats(
|
| data_channels_closed("dataChannelsClosed") {
|
| }
|
|
|
| +RTCPeerConnectionStats::RTCPeerConnectionStats(
|
| + const RTCPeerConnectionStats& other)
|
| + : RTCStats(other.id(), other.timestamp_us()),
|
| + data_channels_opened(other.data_channels_opened),
|
| + data_channels_closed(other.data_channels_closed) {
|
| +}
|
| +
|
| +RTCPeerConnectionStats::~RTCPeerConnectionStats() {
|
| +}
|
| +
|
| } // namespace webrtc
|
|
|