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

Side by Side Diff: third_party/WebKit/public/platform/WebRTCStats.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 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 WebRTCStats_h 5 #ifndef WebRTCStats_h
6 #define WebRTCStats_h 6 #define WebRTCStats_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "WebString.h" 9 #include "WebString.h"
10 #include "WebVector.h" 10 #include "WebVector.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual size_t membersCount() const = 0; 53 virtual size_t membersCount() const = 0;
54 virtual std::unique_ptr<WebRTCStatsMember> getMember(size_t) const = 0; 54 virtual std::unique_ptr<WebRTCStatsMember> getMember(size_t) const = 0;
55 }; 55 };
56 56
57 class WebRTCStatsMember { 57 class WebRTCStatsMember {
58 public: 58 public:
59 virtual ~WebRTCStatsMember() {} 59 virtual ~WebRTCStatsMember() {}
60 60
61 virtual WebString name() const = 0; 61 virtual WebString name() const = 0;
62 virtual WebRTCStatsMemberType type() const = 0; 62 virtual WebRTCStatsMemberType type() const = 0;
63 virtual bool isDefined() const = 0;
63 64
64 // Value getters. No conversion is performed; the function must match the me mber's |type|. 65 // Value getters. No conversion is performed; the function must match the me mber's |type|.
65 virtual int32_t valueInt32() const = 0; 66 virtual int32_t valueInt32() const = 0;
66 virtual uint32_t valueUint32() const = 0; 67 virtual uint32_t valueUint32() const = 0;
67 virtual int64_t valueInt64() const = 0; 68 virtual int64_t valueInt64() const = 0;
68 virtual uint64_t valueUint64() const = 0; 69 virtual uint64_t valueUint64() const = 0;
69 virtual double valueDouble() const = 0; 70 virtual double valueDouble() const = 0;
70 virtual WebString valueString() const = 0; 71 virtual WebString valueString() const = 0;
71 virtual WebVector<int32_t> valueSequenceInt32() const = 0; 72 virtual WebVector<int32_t> valueSequenceInt32() const = 0;
72 virtual WebVector<uint32_t> valueSequenceUint32() const = 0; 73 virtual WebVector<uint32_t> valueSequenceUint32() const = 0;
73 virtual WebVector<int64_t> valueSequenceInt64() const = 0; 74 virtual WebVector<int64_t> valueSequenceInt64() const = 0;
74 virtual WebVector<uint64_t> valueSequenceUint64() const = 0; 75 virtual WebVector<uint64_t> valueSequenceUint64() const = 0;
75 virtual WebVector<double> valueSequenceDouble() const = 0; 76 virtual WebVector<double> valueSequenceDouble() const = 0;
76 virtual WebVector<WebString> valueSequenceString() const = 0; 77 virtual WebVector<WebString> valueSequenceString() const = 0;
77 }; 78 };
78 79
80 class WebRTCStatsReportCallback {
81 public:
82 virtual ~WebRTCStatsReportCallback() {}
83
84 virtual void OnStatsDelivered(std::unique_ptr<WebRTCStatsReport>) = 0;
85 };
86
79 } // namespace blink 87 } // namespace blink
80 88
81 #endif // WebRTCStats_h 89 #endif // WebRTCStats_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698