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

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

Issue 8401001: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix ifndefs Created 9 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
« 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
diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h
index 3424054cb82aa5ff36d0dd956b5da45b865bf534..d7795c716e1a4d38122e00d23e08a36b2b536f85 100644
--- a/content/browser/download/download_file.h
+++ b/content/browser/download/download_file.h
@@ -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"
@@ -33,8 +34,9 @@ class CONTENT_EXPORT DownloadFile : public BaseFile {
// Cancels the download request associated with this file.
void CancelDownloadRequest();
- int id() const { return id_; }
+ int id() const { return id_.local(); }
DownloadManager* GetDownloadManager();
+ const DownloadId& global_id() const { return id_; }
virtual std::string DebugString() const;
@@ -61,7 +63,7 @@ class CONTENT_EXPORT DownloadFile : public BaseFile {
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