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

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

Issue 8372073: Merge 8401001 r107836 into branch 912: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 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
« no previous file with comments | « content/browser/download/download_create_info.cc ('k') | content/browser/download/download_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file.h
===================================================================
--- content/browser/download/download_file.h (revision 108294)
+++ content/browser/download/download_file.h (working copy)
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "content/browser/download/base_file.h"
+#include "content/browser/download/download_id.h"
#include "content/browser/download/download_request_handle.h"
#include "content/browser/download/download_types.h"
#include "content/common/content_export.h"
@@ -32,7 +33,8 @@
// Cancels the download request associated with this file.
void CancelDownloadRequest();
- int id() const { return id_; }
+ int id() const { return id_.local(); }
+ const DownloadId& global_id() const { return id_; }
DownloadManager* GetDownloadManager();
virtual std::string DebugString() const;
@@ -60,7 +62,7 @@
private:
// The unique identifier for this download, assigned at creation by
// the DownloadFileManager for its internal record keeping.
- int id_;
+ DownloadId id_;
// The handle to the request information. Used for operations outside the
// download system, specifically canceling a download.
« no previous file with comments | « content/browser/download/download_create_info.cc ('k') | content/browser/download/download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698