| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_INSTALLER_MAC_APP_SYSTEMINFO_H_ | 5 #ifndef CHROME_INSTALLER_MAC_APP_SYSTEMINFO_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_SYSTEMINFO_H_ | 6 #define CHROME_INSTALLER_MAC_APP_SYSTEMINFO_H_ |
| 7 | 7 |
| 8 #if !defined(__x86_64__) | 8 #if !defined(__x86_64__) |
| 9 #error "Your machine's system architecture may not be compatible with Chrome." | 9 #error "Your machine's system architecture may not be compatible with Chrome." |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
| 13 | 13 |
| 14 @interface SystemInfo : NSObject | 14 @interface SystemInfo : NSObject |
| 15 // Gets the CPU architecture type of the client's system, which will be used | 15 // Gets the CPU architecture type of the client's system, which will be used |
| 16 // when crafting the query to Omaha. This will return either "x84_64h" for | 16 // when crafting the query to Omaha. This should return either "x84_64h" for |
| 17 // systems running on Intel Haswell chips, "i486" for other Intel machines, or | 17 // systems running on Intel Haswell chips, "i486" for other Intel machines, or |
| 18 // strings representing other CPU types ("amd", "pentium", and "i686", for | 18 // strings representing other CPU types ("amd", "pentium", and "i686", for |
| 19 // example, are all possible; however, due to the above macro, the possible | 19 // example, are all possible; however, due to the above macro, the possible |
| 20 // return strings are limited to either "x84_64h" or "i486"). | 20 // return strings are limited to either "x84_64h" or "i486"). |
| 21 + (NSString*)getArch; | 21 + (NSString*)getArch; |
| 22 | 22 |
| 23 // Gets the operating system version of the client. This function may return | 23 // Gets the operating system version of the client. This function may return |
| 24 // values such as "10.11" or "10.10.5". | 24 // values such as "10.11" or "10.10.5". |
| 25 + (NSString*)getOSVersion; | 25 + (NSString*)getOSVersion; |
| 26 | 26 |
| 27 @end | 27 @end |
| 28 | 28 |
| 29 #endif // CHROME_INSTALLER_MAC_APP_SYSTEMINFO_H_ | 29 #endif // CHROME_INSTALLER_MAC_APP_SYSTEMINFO_H_ |
| OLD | NEW |