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

Unified Diff: content/browser/download/download_request_handle.h

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 years, 1 month 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: content/browser/download/download_request_handle.h
diff --git a/content/browser/download/download_request_handle.h b/content/browser/download/download_request_handle.h
index b8deac27fa28875c97052806b74149c591751dde..9cb0950ce6676e6e52842d594159eb820b984501 100644
--- a/content/browser/download/download_request_handle.h
+++ b/content/browser/download/download_request_handle.h
@@ -37,7 +37,13 @@ class CONTENT_EXPORT DownloadRequestHandleInterface {
// Cancels the request.
virtual void CancelRequest() const = 0;
- // Describe the object.
+ // Sets the request ID when resuming a download.
+ virtual void SetRequestId(int new_request_id) = 0;
+
+ // Gets the request ID for resuming a download.
+ virtual int RequestId() const = 0;
+
+ // Describes the object.
virtual std::string DebugString() const = 0;
};
@@ -68,6 +74,8 @@ class CONTENT_EXPORT DownloadRequestHandle
virtual void PauseRequest() const OVERRIDE;
virtual void ResumeRequest() const OVERRIDE;
virtual void CancelRequest() const OVERRIDE;
+ virtual void SetRequestId(int new_request_id) OVERRIDE;
+ virtual int RequestId() const OVERRIDE;
virtual std::string DebugString() const OVERRIDE;
private:
« no previous file with comments | « content/browser/download/download_net_log_parameters.cc ('k') | content/browser/download/download_request_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698