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

Unified Diff: webrtc/api/objc/RTCStatsReport.h

Issue 1540113002: Update API for Objective-C RTCStats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCIceCandidate
Patch Set: Merged master and updated from feedback Created 4 years, 11 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
« no previous file with comments | « webrtc/api/api.gyp ('k') | webrtc/api/objc/RTCStatsReport.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCStatsReport.h
diff --git a/webrtc/api/objc/RTCMediaConstraints.h b/webrtc/api/objc/RTCStatsReport.h
similarity index 51%
copy from webrtc/api/objc/RTCMediaConstraints.h
copy to webrtc/api/objc/RTCStatsReport.h
index a8ad39142e39449d75e9b7b40bad09fb2c421124..fc66faf2cf7b9e22bdd6211e0f59dc40378603fb 100644
--- a/webrtc/api/objc/RTCMediaConstraints.h
+++ b/webrtc/api/objc/RTCStatsReport.h
@@ -12,16 +12,22 @@
NS_ASSUME_NONNULL_BEGIN
-@interface RTCMediaConstraints : NSObject
+/** This does not currently conform to the spec. */
+@interface RTCStatsReport : NSObject
-- (instancetype)init NS_UNAVAILABLE;
+/** Time since 1970-01-01T00:00:00Z in milliseconds. */
+@property(nonatomic, readonly) CFTimeInterval timestamp;
+
+/** The type of stats held by this object. */
+@property(nonatomic, readonly) NSString *type;
+
+/** The identifier for this object. */
+@property(nonatomic, readonly) NSString *statsId;
-/** Initialize with mandatory and/or optional constraints. */
-- (instancetype)initWithMandatoryConstraints:
- (nullable NSDictionary<NSString *, NSString *> *)mandatory
- optionalConstraints:
- (nullable NSDictionary<NSString *, NSString *> *)optional
- NS_DESIGNATED_INITIALIZER;
+/** A dictionary holding the actual stats. */
+@property(nonatomic, readonly) NSDictionary<NSString *, NSString *> *values;
+
+- (instancetype)init NS_UNAVAILABLE;
@end
« no previous file with comments | « webrtc/api/api.gyp ('k') | webrtc/api/objc/RTCStatsReport.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698