Index: webrtc/api/objc/RTCStatsReport+Private.h |
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCStatsReport+Private.h |
similarity index 64% |
copy from webrtc/base/objc/NSString+StdString.h |
copy to webrtc/api/objc/RTCStatsReport+Private.h |
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..5b7dc32a7464f25bab748e1fd31f8d25e7737b16 100644 |
--- a/webrtc/base/objc/NSString+StdString.h |
+++ b/webrtc/api/objc/RTCStatsReport+Private.h |
@@ -8,18 +8,16 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#import <Foundation/Foundation.h> |
+#import "RTCStatsReport.h" |
-#include <string> |
+#include "talk/app/webrtc/statstypes.h" |
NS_ASSUME_NONNULL_BEGIN |
-@interface NSString (StdString) |
+@interface RTCStatsReport () |
-@property(nonatomic, readonly) std::string stdString; |
- |
-+ (std::string)stdStringForString:(NSString *)nsString; |
-+ (NSString *)stringForStdString:(const std::string&)stdString; |
+/** Initialize an RTCStatsReport object from a native StatsReport. */ |
+- (instancetype)initWithNativeReport:(const webrtc::StatsReport &)nativeReport; |
@end |