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

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

Issue 7847027: DownloadId (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 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
« no previous file with comments | « content/browser/download/download_manager.cc ('k') | content/browser/download/download_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_resource_handler.h
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h
index 81d288d50b940d784adcfda66f82d78eb2f12ca3..ef3ec8f5057901314b32b831ca11e1a56fc8c93b 100644
--- a/content/browser/download/download_resource_handler.h
+++ b/content/browser/download/download_resource_handler.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/timer.h"
#include "content/browser/download/download_file.h"
+#include "content/browser/download/download_id.h"
#include "content/browser/renderer_host/global_request_id.h"
#include "content/browser/renderer_host/resource_handler.h"
@@ -26,7 +27,7 @@ class URLRequest;
// Forwards data to the download thread.
class DownloadResourceHandler : public ResourceHandler {
public:
- typedef base::Callback<void(int/*download_id*/, net::Error)>
+ typedef base::Callback<void(DownloadId, net::Error)>
OnStartedCallback;
// started_cb will be called exactly once.
@@ -35,6 +36,7 @@ class DownloadResourceHandler : public ResourceHandler {
int render_view_id,
int request_id,
const GURL& url,
+ DownloadId dl_id,
DownloadFileManager* download_file_manager,
net::URLRequest* request,
bool save_as,
@@ -82,7 +84,7 @@ class DownloadResourceHandler : public ResourceHandler {
void StartPauseTimer();
void CallStartedCB(net::Error error);
- int download_id_;
+ DownloadId download_id_;
GlobalRequestID global_id_;
int render_view_id_;
scoped_refptr<net::IOBuffer> read_buffer_;
« no previous file with comments | « content/browser/download/download_manager.cc ('k') | content/browser/download/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698