Index: chrome/browser/history/download_database.h |
diff --git a/chrome/browser/history/download_database.h b/chrome/browser/history/download_database.h |
index 1d5d3fde9de3c1d361aeb0e86b45b3d12061ab2f..610114f1b446692d596cf085d543bd4dcd1e51d6 100644 |
--- a/chrome/browser/history/download_database.h |
+++ b/chrome/browser/history/download_database.h |
@@ -7,6 +7,7 @@ |
#pragma once |
#include <set> |
+#include <string> |
#include "base/threading/platform_thread.h" |
#include "chrome/browser/history/history_types.h" |
@@ -34,7 +35,7 @@ class DownloadDatabase { |
void QueryDownloads(std::vector<DownloadPersistentStoreInfo>* results); |
// Update the state of one download. Returns true if successful. |
- bool UpdateDownload(int64 received_bytes, int32 state, DownloadID db_handle); |
+ bool UpdateDownload(DownloadItemData data); |
// Update the path of one download. Returns true if successful. |
bool UpdateDownloadPath(const FilePath& path, DownloadID db_handle); |
@@ -69,6 +70,8 @@ class DownloadDatabase { |
bool DropDownloadTable(); |
private: |
+ bool EnsureColumnExists(const std::string& name, const std::string& type); |
+ |
// TODO(rdsmith): Remove after http://crbug.com/96627 has been resolved. |
std::set<int64> returned_ids_; |
bool owning_thread_set_; |