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

Unified Diff: chrome/browser/download/download_file_manager.h

Issue 3127008: Preliminary work on resuming downloads whose connections have expired.
Patch Set: Waiting to send download automation error message until after other downloads are canceled. Created 10 years, 3 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/browser/download/download_file_manager.h
diff --git a/chrome/browser/download/download_file_manager.h b/chrome/browser/download/download_file_manager.h
index 5ccf533743b2b8d437527818626943576df85980..00cb05e87e36763f792457a4c6866eb475c16507 100644
--- a/chrome/browser/download/download_file_manager.h
+++ b/chrome/browser/download/download_file_manager.h
@@ -74,6 +74,9 @@ class DownloadFileManager
// Called on the IO thread
int GetNextId();
+ // Return the ID that matches |url| and |path|, or -1 if not found.
+ int GetDownloadId(const GURL& url, const FilePath& path) const;
+
// Called on UI thread to make DownloadFileManager start the download.
void StartDownload(DownloadCreateInfo* info);
@@ -81,7 +84,10 @@ class DownloadFileManager
// download thread.
void UpdateDownload(int id, DownloadBuffer* buffer);
void CancelDownload(int id);
- void OnResponseCompleted(int id, DownloadBuffer* buffer);
+ void OnResponseCompleted(int id,
+ DownloadBuffer* buffer,
+ int os_error,
+ const std::string& security_info);
// Called on FILE thread by DownloadManager at the beginning of its shutdown.
void OnDownloadManagerShutdown(DownloadManager* manager);

Powered by Google App Engine
This is Rietveld 408576698