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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed content unit tests. Created 8 years, 2 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: content/browser/download/download_request_handle.cc
diff --git a/content/browser/download/download_request_handle.cc b/content/browser/download/download_request_handle.cc
index 43682e411f60a956b66e7ebcf541a88d7e4f598b..02f541e2751fcce9ae4124a1e12ea352d290b77e 100644
--- a/content/browser/download/download_request_handle.cc
+++ b/content/browser/download/download_request_handle.cc
@@ -78,6 +78,14 @@ void DownloadRequestHandle::CancelRequest() const {
base::Bind(&DownloadResourceHandler::CancelRequest, handler_));
}
+void DownloadRequestHandle::SetRequestId(int new_request_id) {
+ request_id_ = new_request_id;
+}
+
+int DownloadRequestHandle::RequestId() const {
+ return request_id_;
+}
+
std::string DownloadRequestHandle::DebugString() const {
return base::StringPrintf("{"
" child_id = %d"

Powered by Google App Engine
This is Rietveld 408576698