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

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

Issue 2395503002: WebRTCStatsMember: Support for bool and sequence of bool (Closed)
Patch Set: Created 4 years, 2 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/stats/rtcstats.h" 10 #include "third_party/webrtc/api/stats/rtcstats.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class RTCStatsMember : public blink::WebRTCStatsMember { 54 class RTCStatsMember : public blink::WebRTCStatsMember {
55 public: 55 public:
56 RTCStatsMember(const scoped_refptr<const webrtc::RTCStatsReport>& stats_owner, 56 RTCStatsMember(const scoped_refptr<const webrtc::RTCStatsReport>& stats_owner,
57 const webrtc::RTCStatsMemberInterface* member); 57 const webrtc::RTCStatsMemberInterface* member);
58 ~RTCStatsMember() override; 58 ~RTCStatsMember() override;
59 59
60 blink::WebString name() const override; 60 blink::WebString name() const override;
61 blink::WebRTCStatsMemberType type() const override; 61 blink::WebRTCStatsMemberType type() const override;
62 bool isDefined() const override; 62 bool isDefined() const override;
63 63
64 bool valueBool() const override;
64 int32_t valueInt32() const override; 65 int32_t valueInt32() const override;
65 uint32_t valueUint32() const override; 66 uint32_t valueUint32() const override;
66 int64_t valueInt64() const override; 67 int64_t valueInt64() const override;
67 uint64_t valueUint64() const override; 68 uint64_t valueUint64() const override;
68 double valueDouble() const override; 69 double valueDouble() const override;
69 blink::WebString valueString() const override; 70 blink::WebString valueString() const override;
71 blink::WebVector<int> valueSequenceBool() const override;
70 blink::WebVector<int32_t> valueSequenceInt32() const override; 72 blink::WebVector<int32_t> valueSequenceInt32() const override;
71 blink::WebVector<uint32_t> valueSequenceUint32() const override; 73 blink::WebVector<uint32_t> valueSequenceUint32() const override;
72 blink::WebVector<int64_t> valueSequenceInt64() const override; 74 blink::WebVector<int64_t> valueSequenceInt64() const override;
73 blink::WebVector<uint64_t> valueSequenceUint64() const override; 75 blink::WebVector<uint64_t> valueSequenceUint64() const override;
74 blink::WebVector<double> valueSequenceDouble() const override; 76 blink::WebVector<double> valueSequenceDouble() const override;
75 blink::WebVector<blink::WebString> valueSequenceString() const override; 77 blink::WebVector<blink::WebString> valueSequenceString() const override;
76 78
77 private: 79 private:
78 // Reference to keep the report that owns |member_|'s stats object alive. 80 // Reference to keep the report that owns |member_|'s stats object alive.
79 const scoped_refptr<const webrtc::RTCStatsReport> stats_owner_; 81 const scoped_refptr<const webrtc::RTCStatsReport> stats_owner_;
80 // Pointer to member of a stats object that is owned by |stats_owner_|. 82 // Pointer to member of a stats object that is owned by |stats_owner_|.
81 const webrtc::RTCStatsMemberInterface* const member_; 83 const webrtc::RTCStatsMemberInterface* const member_;
82 }; 84 };
83 85
84 } // namespace content 86 } // namespace content
85 87
86 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_ 88 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler_unittest.cc ('k') | content/renderer/media/webrtc/rtc_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698