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 |