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

Unified Diff: chrome/browser/download/download_item.h

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: " Created 9 years, 4 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: chrome/browser/download/download_item.h
diff --git a/chrome/browser/download/download_item.h b/chrome/browser/download/download_item.h
index d0749f265401139efd48c75186eaae3b20d0fe37..1a75470d86cc84f0e4cfb0cfe610804e70d83318 100644
--- a/chrome/browser/download/download_item.h
+++ b/chrome/browser/download/download_item.h
@@ -19,6 +19,7 @@
#pragma once
#include <string>
+#include <iostream>
#include "base/basictypes.h"
#include "base/file_path.h"
@@ -33,6 +34,7 @@
class CrxInstaller;
class DownloadFileManager;
+class DownloadId;
class DownloadManager;
struct DownloadCreateInfo;
struct DownloadHistoryInfo;
@@ -277,6 +279,7 @@ class DownloadItem : public NotificationObserver {
}
int64 received_bytes() const { return received_bytes_; }
int32 id() const { return download_id_; }
+ DownloadId global_id() const;
base::Time start_time() const { return start_time_; }
void set_db_handle(int64 handle) { db_handle_ = handle; }
int64 db_handle() const { return db_handle_; }
@@ -489,5 +492,4 @@ class DownloadItem : public NotificationObserver {
DISALLOW_COPY_AND_ASSIGN(DownloadItem);
};
-
#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698