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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/Common/helpers.h

Issue 2893843003: Reland of Split iOS sdk in to separate targets (Closed)
Patch Set: Clear up dependency cycles Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
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_COMMON_HELPERS_H_
12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ 12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_COMMON_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 NSString *NSStringFromStdString(const std::string& stdString);
24 std::string StdStringFromNSString(NSString* nsString); 24 std::string StdStringFromNSString(NSString* nsString);
25 25
26 // Return thread ID as a string. 26 // Return thread ID as a string.
27 std::string GetThreadId(); 27 std::string GetThreadId();
28 28
29 // Return thread ID as string suitable for debug logging. 29 // Return thread ID as string suitable for debug logging.
30 std::string GetThreadInfo(); 30 std::string GetThreadInfo();
31 31
32 // Returns [NSThread currentThread] description as string. 32 // Returns [NSThread currentThread] description as string.
33 // Example: <NSThread: 0x170066d80>{number = 1, name = main} 33 // Example: <NSThread: 0x170066d80>{number = 1, name = main}
34 std::string GetCurrentThreadDescription(); 34 std::string GetCurrentThreadDescription();
35 35
36 std::string GetAudioSessionCategory();
37
38 // Returns the current name of the operating system. 36 // Returns the current name of the operating system.
39 std::string GetSystemName(); 37 std::string GetSystemName();
40 38
41 // Returns the current version of the operating system as a string. 39 // Returns the current version of the operating system as a string.
42 std::string GetSystemVersionAsString(); 40 std::string GetSystemVersionAsString();
43 41
44 // Returns the version of the operating system in double representation. 42 // Returns the version of the operating system in double representation.
45 // Uses a cached value of the system version. 43 // Uses a cached value of the system version.
46 double GetSystemVersion(); 44 double GetSystemVersion();
47 45
(...skipping 20 matching lines...) Expand all
68 int GetProcessorCount(); 66 int GetProcessorCount();
69 67
70 // Indicates whether Low Power Mode is enabled on the iOS device. 68 // Indicates whether Low Power Mode is enabled on the iOS device.
71 bool GetLowPowerModeEnabled(); 69 bool GetLowPowerModeEnabled();
72 70
73 } // namespace ios 71 } // namespace ios
74 } // namespace webrtc 72 } // namespace webrtc
75 73
76 #endif // defined(WEBRTC_IOS) 74 #endif // defined(WEBRTC_IOS)
77 75
78 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_HELPERS_H_ 76 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_COMMON_HELPERS_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/Common/UIDevice+RTCDevice.mm ('k') | webrtc/sdk/objc/Framework/Classes/Common/helpers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698