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_DOWNLOADER_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @interface Downloader : NSObject<NSXMLParserDelegate> |
| 11 |
| 12 // Returns a path to a user's home download folder. |
| 13 + (NSString*)getDownloadsFilePath; |
| 14 |
| 15 - (NSMutableArray*)appendFilename:(NSString*)filename |
| 16 toURLs:(NSArray*)incompleteURLs; |
| 17 |
| 18 // Takes an NSData with a response XML from Omaha and writes the latest |
| 19 // version of chrome to the user's download directory. |
| 20 - (BOOL)downloadChromeImageToDownloadsDirectory:(NSData*)omahaResponseXML; |
| 21 |
| 22 @end |
| 23 |
| 24 #endif // CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_ |
OLD | NEW |