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 62% |
copy from webrtc/base/objc/NSString+StdString.h |
copy to webrtc/api/objc/RTCStats+Private.h |
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..dc844feea3f192131d41d1e4cbba1687678026d2 100644 |
--- a/webrtc/base/objc/NSString+StdString.h |
+++ b/webrtc/api/objc/RTCStats+Private.h |
@@ -8,18 +8,19 @@ |
* 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. No |
+ * ownership is taken of the native stats report. |
tkchin_webrtc
2015/12/21 12:57:13
nit: don't need ownership comment, since it's pass
hjon
2015/12/21 22:02:52
Done.
|
+ */ |
+- (instancetype)initWithStatsReport:(const webrtc::StatsReport &)statsReport; |
@end |