| 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 the URLs and name of the Chrome DMG from | 12 // Parses the XML body from Omaha's HTTP response and extracts the URLs and name |
| 13 // Omaha, then returns an array with all the URLs concatenated with the | 13 // of the Chrome disk image. Then, returns an array with all the URLs |
| 14 // filename. | 14 // concatenated with the filename. |
| 15 + (NSArray*)parseXML:(NSData*)omahaResponseXML error:(NSError**)error; | 15 + (NSArray*)parseXML:(NSData*)omahaResponseXML error:(NSError**)error; |
| 16 | 16 |
| 17 @end | 17 @end |
| 18 | 18 |
| 19 #endif // CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ | 19 #endif // CHROME_INSTALLER_MAC_APP_OMAHAXMLPARSER_H_ |
| OLD | NEW |