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

Unified Diff: chrome/browser/download/download_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_manager.h
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index f4dc78d7ae13626d22bb5bd4c98a9d99d97c530f..cc9b149387601045b52ec6c3357636c2220730b1 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -110,11 +110,14 @@ class DownloadManager
// Notifications sent from the download thread to the UI thread
void StartDownload(DownloadCreateInfo* info);
void UpdateDownload(int32 download_id, int64 size);
+ void OnResponseCompleted(int32 download_id, int64 size, int os_error);
void OnAllDataSaved(int32 download_id, int64 size);
+ void DownloadError(int32 download_id, int64 size, int os_error);
// Called from a view when a user clicks a UI button or link.
void DownloadCancelled(int32 download_id);
void PauseDownload(int32 download_id, bool pause);
+ void RestartDownload(int32 download_id);
void RemoveDownload(int64 download_handle);
// Called when the download is renamed to its final name.
@@ -276,6 +279,13 @@ class DownloadManager
int request_id,
bool pause);
+ // Makes the ResourceDispatcherHost restart a download request.
+ // Called on the IO thread.
+ void RestartDownloadRequest(ResourceDispatcherHost* rdh,
+ int render_process_id,
+ int request_id,
+ DownloadCreateInfo* info);
+
// Inform observers that the model has changed.
void NotifyModelChanged();

Powered by Google App Engine
This is Rietveld 408576698