| 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_AUTHORIZEDINSTALL_H_ | 5 #ifndef CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ | 6 #define CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #import <Security/Security.h> | 9 #import <Security/Security.h> |
| 10 | 10 |
| 11 @interface AuthorizedInstall : NSObject | 11 @interface AuthorizedInstall : NSObject |
| 12 | 12 |
| 13 // Attempts to gain elevated permissions and starts a subprocess. | 13 // Attempts to gain elevated permissions, then starts the subprocess with the |
| 14 // appropriate level of privilege. |
| 14 - (BOOL)loadInstallationTool; | 15 - (BOOL)loadInstallationTool; |
| 15 | 16 |
| 16 // Signals the tool to begin the installation. Returns the path to the | 17 // Signals the tool to begin the installation. Returns the path to the |
| 17 // installed app. | 18 // installed app. |
| 18 - (NSString*)startInstall:(NSString*)appBundlePath; | 19 - (NSString*)startInstall:(NSString*)appBundlePath; |
| 19 | 20 |
| 20 @end | 21 @end |
| 21 | 22 |
| 22 #endif // CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ | 23 #endif // CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ |
| OLD | NEW |