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

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, 5 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 5596b53c3780720e9909cf4d5d7d7e2fe20559dc..5e6df1fa548d50ec710ff383e2085d95d24623de 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 gid() const;
Randy Smith (Not in Mondays) 2011/07/28 21:03:16 I'd be inclined to call this global_id(); that's w
benjhayden 2011/08/03 17:44:46 Done.
base::Time start_time() const { return start_time_; }
void set_db_handle(int64 handle) { db_handle_ = handle; }
int64 db_handle() const { return db_handle_; }
@@ -487,5 +490,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