Index: chrome/installer/mac/app/parser.h |
diff --git a/chrome/installer/mac/app/parser.h b/chrome/installer/mac/app/parser.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..68ef7406bc0864e6c7d5bc27d2e5e4c61d352c27 |
--- /dev/null |
+++ b/chrome/installer/mac/app/parser.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_INSTALLER_MAC_APP_PARSER_H_ |
+#define CHROME_INSTALLER_MAC_APP_PARSER_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+@interface Parser : NSObject <NSXMLParserDelegate> |
+ |
+/* |
+@property(nonatomic, copy) NSMutableArray *chromeDownloadURLs; |
+@property(nonatomic, copy) NSString *filename; |
+ |
+// Prepares the array for use in the following methods. |
+- (id)init; |
+ |
+// Will parse the XML passed into it and extract all the url's it finds as well |
+// as the filename. Will then add each url into the array of url's and report |
+// any errors it had. |
+- (void)parseXML:(NSData*)omahaResponseXML; |
+ |
+// The URL's we got from the previous method are incomplete and need the |
+// filename (which is the same for all the links) appended to the end. |
+// This method iterates through the array and appends the filename to each URL. |
+- (void)appendFilenameToURL; |
+ */ |
+ |
+@end |
+ |
+#endif // CHROME_INSTALLER_MAC_APP_PARSER_H_ |