OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "third_party/WebKit/public/platform/WebRTCStats.h" | 9 #include "third_party/WebKit/public/platform/WebRTCStats.h" |
10 #include "third_party/webrtc/api/rtcstats.h" | 10 #include "third_party/webrtc/api/stats/rtcstats.h" |
11 #include "third_party/webrtc/api/rtcstatsreport.h" | 11 #include "third_party/webrtc/api/stats/rtcstatsreport.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class RTCStatsReport : public blink::WebRTCStatsReport { | 15 class RTCStatsReport : public blink::WebRTCStatsReport { |
16 public: | 16 public: |
17 RTCStatsReport( | 17 RTCStatsReport( |
18 const scoped_refptr<const webrtc::RTCStatsReport>& stats_report); | 18 const scoped_refptr<const webrtc::RTCStatsReport>& stats_report); |
19 ~RTCStatsReport() override; | 19 ~RTCStatsReport() override; |
20 | 20 |
21 std::unique_ptr<blink::WebRTCStats> next() override; | 21 std::unique_ptr<blink::WebRTCStats> next() override; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 private: | 73 private: |
74 // Reference to keep the report that owns |member_|'s stats object alive. | 74 // Reference to keep the report that owns |member_|'s stats object alive. |
75 const scoped_refptr<const webrtc::RTCStatsReport> stats_owner_; | 75 const scoped_refptr<const webrtc::RTCStatsReport> stats_owner_; |
76 // Pointer to member of a stats object that is owned by |stats_owner_|. | 76 // Pointer to member of a stats object that is owned by |stats_owner_|. |
77 const webrtc::RTCStatsMemberInterface* const member_; | 77 const webrtc::RTCStatsMemberInterface* const member_; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace content | 80 } // namespace content |
81 | 81 |
82 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ | 82 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ |
OLD | NEW |