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

Unified Diff: webrtc/api/objc/RTCStats+Private.h

Issue 1540113002: Update API for Objective-C RTCStats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCIceCandidate
Patch Set: Make sure it builds and update from feedback Created 5 years 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
« webrtc/api/objc/RTCStats.mm ('K') | « webrtc/api/objc/RTCStats.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCStats+Private.h
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCStats+Private.h
similarity index 64%
copy from webrtc/base/objc/NSString+StdString.h
copy to webrtc/api/objc/RTCStats+Private.h
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..08bf752349ff0039fa824cf0c219c3ab7a508b23 100644
--- a/webrtc/base/objc/NSString+StdString.h
+++ b/webrtc/api/objc/RTCStats+Private.h
@@ -8,18 +8,16 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import <Foundation/Foundation.h>
+#import "RTCStats.h"
-#include <string>
+#include "talk/app/webrtc/statstypes.h"
NS_ASSUME_NONNULL_BEGIN
-@interface NSString (StdString)
+@interface RTCStats ()
-@property(nonatomic, readonly) std::string stdString;
-
-+ (std::string)stdStringForString:(NSString *)nsString;
-+ (NSString *)stringForStdString:(const std::string&)stdString;
+/** Initialize an RTCStats object from a native StatsReport. */
+- (instancetype)initWithStatsReport:(const webrtc::StatsReport &)statsReport;
@end
« webrtc/api/objc/RTCStats.mm ('K') | « webrtc/api/objc/RTCStats.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698