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_UNPACKER_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_UNPACKER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class Unpacker; |
| 11 @protocol UnpackDelegate<NSObject> |
| 12 - (void)unpacker:(Unpacker*)unpacker onMountSuccess:(NSString*)tempAppPath; |
| 13 - (void)unpacker:(Unpacker*)unpacker onMountFailure:(NSError*)error; |
| 14 - (void)unpacker:(Unpacker*)unpacker onUnmountSuccess:(NSString*)mountpath; |
| 15 - (void)unpacker:(Unpacker*)unpacker onUnmountFailure:(NSError*)error; |
| 16 @end |
| 17 |
| 18 @interface Unpacker : NSObject |
| 19 |
| 20 @property(nonatomic, assign) id<UnpackDelegate> delegate; |
| 21 @property(nonatomic, copy) NSString* appPath; |
| 22 |
| 23 // Mount a disk image at |fileURL|. |
| 24 - (void)mountDMGFromURL:(NSURL*)fileURL; |
| 25 // Unmount that same disk image. |
| 26 - (void)unmountDMG; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // CHROME_INSTALLER_MAC_APP_UNPACKER_H_ |
OLD | NEW |