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

Unified Diff: content/public/browser/download_persistent_store_info.h

Issue 10823203: Fix downloads db state=3 corruption using version=23 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: version=23 Created 8 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: content/public/browser/download_persistent_store_info.h
diff --git a/content/public/browser/download_persistent_store_info.h b/content/public/browser/download_persistent_store_info.h
index 7c26ba330bc6f8bc18dcd18c7530b65f46ce109a..8ca7de29a899941572364cc56abf07f2d1c7d030 100644
--- a/content/public/browser/download_persistent_store_info.h
+++ b/content/public/browser/download_persistent_store_info.h
@@ -8,6 +8,7 @@
#include "base/file_path.h"
#include "base/time.h"
#include "content/common/content_export.h"
+#include "content/public/browser/download_item.h"
#include "googleurl/src/gurl.h"
namespace content {
@@ -30,7 +31,7 @@ struct CONTENT_EXPORT DownloadPersistentStoreInfo {
const base::Time& end,
int64 received,
int64 total,
- int32 download_state,
+ DownloadItem::DownloadState download_state,
int64 handle,
bool download_opened);
~DownloadPersistentStoreInfo(); // For linux-clang.
@@ -58,7 +59,7 @@ struct CONTENT_EXPORT DownloadPersistentStoreInfo {
int64 total_bytes;
// The current state of the download.
- int32 state;
+ DownloadItem::DownloadState state;
// The handle of the download in the database. Is not changed by
// UpdateEntry().

Powered by Google App Engine
This is Rietveld 408576698