Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10152)

Unified Diff: chrome/installer/mac/app/parser.h

Issue 2094583004: Initial commit for Chrome metainstaller on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional progress addressing downloader and parser, moved BUILD dependencies away from root. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698