Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/installer/mac/app/Unpacker.h

Issue 2203583002: Added unpacking step (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added use of temporary folders, removed semaphore from main installer code, adjusted some files' APIs, resolved remaining comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // TODO: revise api to be more succinct & logical, make the unnecessary ones
11 // potentially optional for testing's sake
12
13 @class Unpacker;
14 @protocol UnpackDelegate
15 - (void)unpacker:(Unpacker*)unpacker onMountSuccess:(NSString*)mountpath;
16 - (void)unpacker:(Unpacker*)unpacker onMountFailure:(NSString*)mountpath;
17 - (void)unpacker:(Unpacker*)unpacker onExtractSuccess:(NSString*)appPath;
18 - (void)unpacker:(Unpacker*)unpacker onExtractFailure:(NSString*)appPath;
19 // TODO: put in a better parameter to pass through
20 - (void)unpacker:(Unpacker*)unpacker onUnmountSuccess:(NSError*)error;
21 - (void)unpacker:(Unpacker*)unpacker onUnmountFailure:(NSError*)error;
22 @end
23
24 @interface Unpacker : NSObject
25
26 @property(nonatomic, assign) id<UnpackDelegate> delegate;
27 @property(nonatomic, copy) NSString* appPath;
28
29 - (id)initWithFinalAppPath:(NSString*)appPath;
30
31 // TODO: write a new "extracter" class to be nested into unpacker
32 - (void)mountDMGFromURL:(NSURL*)fileURL;
33 - (void)extractChrome;
34 - (void)unmountDMG;
35
36 @end
37
38 #endif // CHROME_INSTALLER_MAC_APP_UNPACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698