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

Unified Diff: chrome/browser/component_updater/crx_downloader.h

Issue 101043010: Added support for multiple urls in the component updater. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/browser/component_updater/crx_downloader.h
diff --git a/chrome/browser/component_updater/crx_downloader.h b/chrome/browser/component_updater/crx_downloader.h
index e0facd469b42911ca00dff6b294445341a9935a9..029f38006281af6bbf62ec4fcf9ed2cc0dd7c4c5 100644
--- a/chrome/browser/component_updater/crx_downloader.h
+++ b/chrome/browser/component_updater/crx_downloader.h
@@ -82,11 +82,11 @@ class CrxDownloader {
virtual ~CrxDownloader();
// Starts the download. One instance of the class handles one download only.
- // Returns true if success or false in case of errors. One instance of
- // CrxDownloader can only be started once, otherwise the behavior is
- // undefined.
- bool StartDownloadFromUrl(const GURL& url);
- bool StartDownload(const std::vector<GURL>& urls);
+ // One instance of CrxDownloader can only be started once, otherwise the
+ // behavior is undefined. The callback gets invoked if the download can't
+ // be started.
+ void StartDownloadFromUrl(const GURL& url);
+ void StartDownload(const std::vector<GURL>& urls);
const std::vector<DownloadMetrics> download_metrics() const;
« no previous file with comments | « chrome/browser/component_updater/component_updater_utils.cc ('k') | chrome/browser/component_updater/crx_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698