Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ | |
|
Anna Zeng
2016/08/18 15:57:16
Is there a test file for this new class? Let's add
ivanhernandez
2016/08/22 15:34:49
Will probably be on the next patch :)
| |
| 6 #define CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 #import <Security/Security.h> | |
| 10 | |
| 11 @interface AuthorizedInstall : NSObject { | |
| 12 AuthorizationRef authRef_; | |
| 13 OSStatus status_; | |
| 14 FILE* communicationPipe_; | |
|
Anna Zeng
2016/08/18 15:57:16
authRef_, status_, and communicationPipe_ can all
ivanhernandez
2016/08/22 15:34:49
Done.
| |
| 15 } | |
| 16 | |
| 17 // Asks for user password and starts tool with privileged permissions. | |
| 18 - (BOOL)authorizeInstallationTool; | |
|
Anna Zeng
2016/08/18 15:57:16
Can we make this the init function?
ivanhernandez
2016/08/22 15:34:49
Probably want to use a name other than init to bet
| |
| 19 | |
| 20 // Allows this program to communicate with the child process. | |
| 21 - (void)sendMessageToTool:(NSString*)message; | |
|
Anna Zeng
2016/08/18 15:57:16
I think the preferred API is a function that doesn
ivanhernandez
2016/08/22 15:34:49
Done.
| |
| 22 | |
| 23 @end | |
| 24 | |
| 25 #endif // CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_ | |
| OLD | NEW |