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

Unified Diff: chrome/browser/history/download_database.h

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added binary files based on c#37 Created 7 years, 11 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/history/download_database.h
diff --git a/chrome/browser/history/download_database.h b/chrome/browser/history/download_database.h
index 8cf07ab44b1c5a4b575f193eac84c7e8a93d0389..80cc59e6556d4d49d2f914224bd38dceae3a6adb 100644
--- a/chrome/browser/history/download_database.h
+++ b/chrome/browser/history/download_database.h
@@ -69,6 +69,10 @@ class DownloadDatabase {
// database. See http://crbug.com/140687
bool MigrateDownloadsState();
+ // Returns true if able to successfully add the last interrupt reason and the
+ // two target paths to downloads.
+ bool MigrateDownloadsReasonPathsAndDangerType();
+
// Creates the downloads table if needed.
bool InitDownloadTable();
@@ -77,6 +81,13 @@ class DownloadDatabase {
bool DropDownloadTable();
private:
+ // Reason for dropping a particular record.
+ enum DroppedReason {
+ DROPPED_REASON_BAD_STATE = 0,
+ DROPPED_REASON_BAD_DANGER_TYPE = 1,
+ DROPPED_REASON_MAX
+ };
+
bool EnsureColumnExists(const std::string& name, const std::string& type);
bool owning_thread_set_;

Powered by Google App Engine
This is Rietveld 408576698