OLD | NEW |
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_OMAHAXMLPARSER_H_ | 5 #ifndef CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ |
6 #define CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ | 6 #define CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 @interface OmahaXMLParser : NSObject | 10 @interface OmahaXMLParser : NSObject |
11 | 11 |
12 // Parses an XML document and extracts all the URL's it finds as well as the | 12 // Parses an XML document and extracts the URLs and name of the Chrome DMG from |
13 // filename. Adds each URL into the array chromeIncompleteDownloadURLs_. | 13 // Omaha, then returns an array with all the URLs concatenated with the |
| 14 // filename. |
14 + (NSArray*)parseXML:(NSData*)omahaResponseXML error:(NSError**)error; | 15 + (NSArray*)parseXML:(NSData*)omahaResponseXML error:(NSError**)error; |
15 | 16 |
16 @end | 17 @end |
17 | 18 |
18 #endif // CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ | 19 #endif // CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ |
OLD | NEW |