OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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_PARSER_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_PARSER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @interface Parser : NSObject <NSXMLParserDelegate> |
| 11 |
| 12 /* |
| 13 @property(nonatomic, copy) NSMutableArray *chromeDownloadURLs; |
| 14 @property(nonatomic, copy) NSString *filename; |
| 15 |
| 16 // Prepares the array for use in the following methods. |
| 17 - (id)init; |
| 18 |
| 19 // Will parse the XML passed into it and extract all the url's it finds as well |
| 20 // as the filename. Will then add each url into the array of url's and report |
| 21 // any errors it had. |
| 22 - (void)parseXML:(NSData*)omahaResponseXML; |
| 23 |
| 24 // The URL's we got from the previous method are incomplete and need the |
| 25 // filename (which is the same for all the links) appended to the end. |
| 26 // This method iterates through the array and appends the filename to each URL. |
| 27 - (void)appendFilenameToURL; |
| 28 */ |
| 29 |
| 30 @end |
| 31 |
| 32 #endif // CHROME_INSTALLER_MAC_APP_PARSER_H_ |
OLD | NEW |