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 // Calls parseXML and returns the first URL. Then calls appendFilename to form | |
Elly Fong-Jones
2016/07/06 15:22:02
Comments in headers should be about the interface
| |
13 // complete download URLs. | |
14 // TODO(ivan): check the URL's actually work ie. response is a 200/202 and | |
Elly Fong-Jones
2016/07/06 15:22:02
TODOs should have your username in them, so this w
| |
15 // return the first working URL. | |
16 - (NSURL*)parseOhamaResponseForChromeImageURLAndFilename:(NSData*)omahaResponseX ML; | |
17 | |
18 // Writes the chrome image in memory to the user's download directory. | |
19 - (void)writeChromeImageToDownloadsDirectory:(NSURL*)chromeURL; | |
20 | |
21 // Calls all the other methods in this class to download the latest version of | |
22 // chrome. | |
23 - (void)downloadChromeImageToDownloadsDirectory:(NSData*)responseXMLData; | |
Elly Fong-Jones
2016/07/06 15:22:02
I think this is the only function that should real
| |
24 | |
25 @end | |
26 | |
27 #endif // CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_ | |
OLD | NEW |