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

Side by Side Diff: chrome/installer/mac/app/downloader.h

Issue 2094583004: Initial commit for Chrome metainstaller on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fully addressed making the .dmg download asynchronously Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_
6 #define CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_
7
8 #import <Foundation/Foundation.h>
9
10 @interface Downloader : NSObject <NSXMLParserDelegate>
11
12 // Calls parseXML and returns the first URL. Then calls appendFilename to form
Elly Fong-Jones 2016/07/06 15:22:02 Comments in headers should be about the interface
13 // complete download URLs.
14 // TODO(ivan): check the URL's actually work ie. response is a 200/202 and
Elly Fong-Jones 2016/07/06 15:22:02 TODOs should have your username in them, so this w
15 // return the first working URL.
16 - (NSURL*)parseOhamaResponseForChromeImageURLAndFilename:(NSData*)omahaResponseX ML;
17
18 // Writes the chrome image in memory to the user's download directory.
19 - (void)writeChromeImageToDownloadsDirectory:(NSURL*)chromeURL;
20
21 // Calls all the other methods in this class to download the latest version of
22 // chrome.
23 - (void)downloadChromeImageToDownloadsDirectory:(NSData*)responseXMLData;
Elly Fong-Jones 2016/07/06 15:22:02 I think this is the only function that should real
24
25 @end
26
27 #endif // CHROME_INSTALLER_MAC_APP_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698