Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: content/renderer/media/webrtc/rtc_stats.h

Issue 2317063002: WebRTCPeerConnectionHandler::getStats for the new stats collector API (Closed)
Patch Set: TODO to impl MockWebRTCPeerConnectionHandler::getStats in a follow-up instead Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/rtcstats.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 }; 49 };
50 50
51 class RTCStatsMember : public blink::WebRTCStatsMember { 51 class RTCStatsMember : public blink::WebRTCStatsMember {
52 public: 52 public:
53 RTCStatsMember(const scoped_refptr<const webrtc::RTCStatsReport>& stats_owner, 53 RTCStatsMember(const scoped_refptr<const webrtc::RTCStatsReport>& stats_owner,
54 const webrtc::RTCStatsMemberInterface* member); 54 const webrtc::RTCStatsMemberInterface* member);
55 ~RTCStatsMember() override; 55 ~RTCStatsMember() override;
56 56
57 blink::WebString name() const override; 57 blink::WebString name() const override;
58 blink::WebRTCStatsMemberType type() const override; 58 blink::WebRTCStatsMemberType type() const override;
59 bool isDefined() const override;
59 60
60 int32_t valueInt32() const override; 61 int32_t valueInt32() const override;
61 uint32_t valueUint32() const override; 62 uint32_t valueUint32() const override;
62 int64_t valueInt64() const override; 63 int64_t valueInt64() const override;
63 uint64_t valueUint64() const override; 64 uint64_t valueUint64() const override;
64 double valueDouble() const override; 65 double valueDouble() const override;
65 blink::WebString valueString() const override; 66 blink::WebString valueString() const override;
66 blink::WebVector<int32_t> valueSequenceInt32() const override; 67 blink::WebVector<int32_t> valueSequenceInt32() const override;
67 blink::WebVector<uint32_t> valueSequenceUint32() const override; 68 blink::WebVector<uint32_t> valueSequenceUint32() const override;
68 blink::WebVector<int64_t> valueSequenceInt64() const override; 69 blink::WebVector<int64_t> valueSequenceInt64() const override;
69 blink::WebVector<uint64_t> valueSequenceUint64() const override; 70 blink::WebVector<uint64_t> valueSequenceUint64() const override;
70 blink::WebVector<double> valueSequenceDouble() const override; 71 blink::WebVector<double> valueSequenceDouble() const override;
71 blink::WebVector<blink::WebString> valueSequenceString() const override; 72 blink::WebVector<blink::WebString> valueSequenceString() const override;
72 73
73 private: 74 private:
74 // Reference to keep the report that owns |member_|'s stats object alive. 75 // Reference to keep the report that owns |member_|'s stats object alive.
75 const scoped_refptr<const webrtc::RTCStatsReport> stats_owner_; 76 const scoped_refptr<const webrtc::RTCStatsReport> stats_owner_;
76 // Pointer to member of a stats object that is owned by |stats_owner_|. 77 // Pointer to member of a stats object that is owned by |stats_owner_|.
77 const webrtc::RTCStatsMemberInterface* const member_; 78 const webrtc::RTCStatsMemberInterface* const member_;
78 }; 79 };
79 80
80 } // namespace content 81 } // namespace content
81 82
82 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ 83 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698