OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GCAPI_MAC_GCAPI_H_ | 5 #ifndef CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_ |
6 #define CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_ | 6 #define CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_ |
7 | 7 |
8 // Error conditions for GoogleChromeCompatibilityCheck(). | 8 // Error conditions for GoogleChromeCompatibilityCheck(). |
9 #define GCCC_ERROR_USERLEVELALREADYPRESENT (1 << 0) | 9 #define GCCC_ERROR_ALREADYPRESENT (1 << 0) |
10 #define GCCC_ERROR_SYSTEMLEVELALREADYPRESENT (1 << 1) | 10 #define GCCC_ERROR_ACCESSDENIED (1 << 1) |
11 #define GCCC_ERROR_ACCESSDENIED (1 << 2) | 11 #define GCCC_ERROR_OSNOTSUPPORTED (1 << 2) |
12 #define GCCC_ERROR_OSNOTSUPPORTED (1 << 3) | 12 #define GCCC_ERROR_ALREADYOFFERED (1 << 3) |
13 #define GCCC_ERROR_ALREADYOFFERED (1 << 4) | 13 #define GCCC_ERROR_INTEGRITYLEVEL (1 << 4) |
14 #define GCCC_ERROR_INTEGRITYLEVEL (1 << 5) | |
15 | 14 |
16 #ifdef __cplusplus | 15 #ifdef __cplusplus |
17 extern "C" { | 16 extern "C" { |
18 #endif | 17 #endif |
19 | 18 |
20 // This function returns nonzero if Google Chrome should be offered. | 19 // This function returns nonzero if Google Chrome should be offered. |
21 // If the return value is 0, |reasons| explains why. If you don't care for the | 20 // If the return value is 0, |reasons| explains why. If you don't care for the |
22 // reason, you can pass NULL for |reasons|. | 21 // reason, you can pass NULL for |reasons|. |
23 int GoogleChromeCompatibilityCheck(unsigned* reasons); | 22 int GoogleChromeCompatibilityCheck(unsigned* reasons); |
24 | 23 |
(...skipping 18 matching lines...) Expand all Loading... |
43 unsigned master_prefs_contents_size); | 42 unsigned master_prefs_contents_size); |
44 | 43 |
45 // This function launches Google Chrome after a successful install. | 44 // This function launches Google Chrome after a successful install. |
46 int LaunchGoogleChrome(); | 45 int LaunchGoogleChrome(); |
47 | 46 |
48 #ifdef __cplusplus | 47 #ifdef __cplusplus |
49 } // extern "C" | 48 } // extern "C" |
50 #endif | 49 #endif |
51 | 50 |
52 #endif // CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_ | 51 #endif // CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_ |
OLD | NEW |