OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ | 11 #ifndef WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ |
12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ | 12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ |
13 | 13 |
14 #if defined(WEBRTC_IOS) | 14 #if defined(WEBRTC_IOS) |
15 | 15 |
16 #include <string> | 16 #include <string> |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace ios { | 19 namespace ios { |
20 | 20 |
21 bool CheckAndLogError(BOOL success, NSError* error); | 21 bool CheckAndLogError(BOOL success, NSError* error); |
22 | 22 |
| 23 NSString *NSStringFromStdString(const std::string& stdString); |
23 std::string StdStringFromNSString(NSString* nsString); | 24 std::string StdStringFromNSString(NSString* nsString); |
24 | 25 |
25 // Return thread ID as a string. | 26 // Return thread ID as a string. |
26 std::string GetThreadId(); | 27 std::string GetThreadId(); |
27 | 28 |
28 // Return thread ID as string suitable for debug logging. | 29 // Return thread ID as string suitable for debug logging. |
29 std::string GetThreadInfo(); | 30 std::string GetThreadInfo(); |
30 | 31 |
31 // Returns [NSThread currentThread] description as string. | 32 // Returns [NSThread currentThread] description as string. |
32 // Example: <NSThread: 0x170066d80>{number = 1, name = main} | 33 // Example: <NSThread: 0x170066d80>{number = 1, name = main} |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 69 |
69 // Indicates whether Low Power Mode is enabled on the iOS device. | 70 // Indicates whether Low Power Mode is enabled on the iOS device. |
70 bool GetLowPowerModeEnabled(); | 71 bool GetLowPowerModeEnabled(); |
71 | 72 |
72 } // namespace ios | 73 } // namespace ios |
73 } // namespace webrtc | 74 } // namespace webrtc |
74 | 75 |
75 #endif // defined(WEBRTC_IOS) | 76 #endif // defined(WEBRTC_IOS) |
76 | 77 |
77 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ | 78 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ |
OLD | NEW |