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

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

Issue 2203583002: Added unpacking step (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved comments, made many minor changes, ready for review! Created 4 years, 4 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/Downloader.h
diff --git a/chrome/installer/mac/app/Downloader.h b/chrome/installer/mac/app/Downloader.h
index 72c63ad76d65f00a8fac913d2f987652c899f8b8..d5bbe072f93b6d104d01a1c388be43decf1f6ec8 100644
--- a/chrome/installer/mac/app/Downloader.h
+++ b/chrome/installer/mac/app/Downloader.h
@@ -9,23 +9,17 @@
@class Downloader;
@protocol DownloaderDelegate
-- (void)didDownloadData:(double)downloadProgressPercentage;
-- (void)downloader:(Downloader*)download
- onDownloadSuccess:(NSURL*)diskImagePath;
-- (void)downloader:(Downloader*)download
- onDownloadFailureWithError:(NSError*)error;
+- (void)downloader:(Downloader*)download percentProgress:(double)percentage;
+- (void)downloader:(Downloader*)download onSuccess:(NSURL*)diskImageURL;
+- (void)downloader:(Downloader*)download onFailure:(NSError*)error;
@end
@interface Downloader : NSObject<NSURLSessionDownloadDelegate>
@property(nonatomic, assign) id<DownloaderDelegate> delegate;
-// Takes an NSData with a response XML from Omaha and writes the latest
-// version of chrome to the user's download directory.
-- (void)downloadChromeImageToDownloadsDirectory:(NSURL*)chromeImageURL;
-
-// Returns a path to a user's home download folder.
-+ (NSString*)getChromeDownloadFilePath;
+// Downloads Chrome from |chromeImageURL| to the local hard drive.
+- (void)downloadChromeImageFrom:(NSURL*)chromeImageURL;
@end

Powered by Google App Engine
This is Rietveld 408576698