| 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_GCAPI_H_ | 5 #ifndef CHROME_INSTALLER_GCAPI_GCAPI_H_ |
| 6 #define CHROME_INSTALLER_GCAPI_GCAPI_H_ | 6 #define CHROME_INSTALLER_GCAPI_GCAPI_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 // Error conditions for GoogleChromeCompatibilityCheck(). | 10 // Error conditions for GoogleChromeCompatibilityCheck(). |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 BOOL __stdcall CanOfferReactivation(const wchar_t* brand_code, | 106 BOOL __stdcall CanOfferReactivation(const wchar_t* brand_code, |
| 107 int shell_mode, | 107 int shell_mode, |
| 108 DWORD* error_code); | 108 DWORD* error_code); |
| 109 | 109 |
| 110 // Attempts to reactivate Chrome for the specified |brand_code|. Returns false | 110 // Attempts to reactivate Chrome for the specified |brand_code|. Returns false |
| 111 // if reactivation fails, and places one of the REACTIVATE_ERROR_XXX values | 111 // if reactivation fails, and places one of the REACTIVATE_ERROR_XXX values |
| 112 // in |error_code| if |error_code| is non-null. | 112 // in |error_code| if |error_code| is non-null. |
| 113 // |shell_mode| should be set to one of GCAPI_INVOKED_STANDARD_SHELL or | 113 // |shell_mode| should be set to one of GCAPI_INVOKED_STANDARD_SHELL or |
| 114 // GCAPI_INVOKED_UAC_ELEVATION depending on whether this method is invoked | 114 // GCAPI_INVOKED_UAC_ELEVATION depending on whether this method is invoked |
| 115 // from an elevated or non-elevated process. | 115 // from an elevated or non-elevated process. |
| 116 BOOL __stdcall ReactivateChrome(wchar_t* brand_code, | 116 BOOL __stdcall ReactivateChrome(const wchar_t* brand_code, |
| 117 int shell_mode, | 117 int shell_mode, |
| 118 DWORD* error_code); | 118 DWORD* error_code); |
| 119 | 119 |
| 120 // Returns true if a vendor may offer relaunch at this time. Returns false if | 120 // Returns true if a vendor may offer relaunch at this time. Returns false if |
| 121 // the vendor may not offer relaunching at this time, and places one of the | 121 // the vendor may not offer relaunching at this time, and places one of the |
| 122 // RELAUNCH_ERROR_XXX values in |error_code| if |error_code| is non-null. The | 122 // RELAUNCH_ERROR_XXX values in |error_code| if |error_code| is non-null. The |
| 123 // installed brandcode must be in |partner_brandcode_list|. |shell_mode| should | 123 // installed brandcode must be in |partner_brandcode_list|. |shell_mode| should |
| 124 // be set to one of GCAPI_INVOKED_STANDARD_SHELL or GCAPI_INVOKED_UAC_ELEVATION | 124 // be set to one of GCAPI_INVOKED_STANDARD_SHELL or GCAPI_INVOKED_UAC_ELEVATION |
| 125 // depending on whether this method is invoked from an elevated or non-elevated | 125 // depending on whether this method is invoked from an elevated or non-elevated |
| 126 // process. | 126 // process. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 int, | 164 int, |
| 165 const wchar_t*, | 165 const wchar_t*, |
| 166 int, | 166 int, |
| 167 DWORD*); | 167 DWORD*); |
| 168 | 168 |
| 169 #ifdef __cplusplus | 169 #ifdef __cplusplus |
| 170 } // extern "C" | 170 } // extern "C" |
| 171 #endif | 171 #endif |
| 172 | 172 |
| 173 #endif // CHROME_INSTALLER_GCAPI_GCAPI_H_ | 173 #endif // CHROME_INSTALLER_GCAPI_GCAPI_H_ |
| OLD | NEW |