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

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

Issue 2148293005: Migrate mac installer to delegate-driven model (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the rest of Sidney's comments Created 4 years, 5 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
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_DOWNLOADER_H_ 5 #ifndef CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_
6 #define CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_ 6 #define CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 @interface Downloader : NSObject<NSXMLParserDelegate> 10 #import "MainDelegate.h"
11
12 @interface Downloader
13 : NSObject<NSXMLParserDelegate, NSURLSessionDownloadDelegate>
14
15 @property(nonatomic, assign) id<UnpackDelegate> delegate;
11 16
12 // Returns a path to a user's home download folder. 17 // Returns a path to a user's home download folder.
13 + (NSString*)getDownloadsFilePath; 18 + (NSString*)getDownloadsFilePath;
14 19
15 - (NSMutableArray*)appendFilename:(NSString*)filename 20 - (NSMutableArray*)appendFilename:(NSString*)filename
16 toURLs:(NSArray*)incompleteURLs; 21 toURLs:(NSArray*)incompleteURLs;
17 22
18 // Takes an NSData with a response XML from Omaha and writes the latest 23 // Takes an NSData with a response XML from Omaha and writes the latest
19 // version of chrome to the user's download directory. 24 // version of chrome to the user's download directory.
20 - (BOOL)downloadChromeImageToDownloadsDirectory:(NSData*)omahaResponseXML; 25 - (BOOL)downloadChromeImageToDownloadsDirectory:(NSData*)omahaResponseXML;
21 26
22 @end 27 @end
23 28
24 #endif // CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_ 29 #endif // CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698