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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h

Issue 2813023002: [Bindings] Make maplike<> and setlike<> imply a readonly size attribute. (Closed)
Patch Set: merge with 23752147e6f5f7dcaf4bad1bb1c306fb91e1ec5b Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h b/third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h
index 226b6ed3be41a10f9d65c35ff1a693a05ee1d0b0..b2ab22f1eb44ceeda2503d4d6b5716c6235fdef5 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h
@@ -25,6 +25,8 @@ class RTCStatsReport final : public GarbageCollectedFinalized<RTCStatsReport>,
public:
RTCStatsReport(std::unique_ptr<WebRTCStatsReport>);
+ size_t size() const { return report_->Size(); }
+
// Maplike<String, v8::Local<v8::Value>>
PairIterable<String, v8::Local<v8::Value>>::IterationSource* StartIteration(
ScriptState*,
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFaceSet.idl ('k') | third_party/WebKit/Source/modules/webmidi/MIDIInputMap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698