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

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

Issue 6969009: Reduced the lifetime of DownloadCreateInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed structure accessors from DownloadItem, per request. Created 9 years, 7 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.cc
diff --git a/chrome/browser/history/download_database.cc b/chrome/browser/history/download_database.cc
index f0f122e35c67babe1e31528ec2225e40d4ff52ae..c3630271873da15fd9411b7bd34637a5b8247770 100644
--- a/chrome/browser/history/download_database.cc
+++ b/chrome/browser/history/download_database.cc
@@ -81,7 +81,7 @@ bool DownloadDatabase::DropDownloadTable() {
}
void DownloadDatabase::QueryDownloads(
- std::vector<DownloadCreateInfo>* results) {
+ std::vector<DownloadHistoryInfo>* results) {
results->clear();
sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,
@@ -93,7 +93,7 @@ void DownloadDatabase::QueryDownloads(
return;
while (statement.Step()) {
- DownloadCreateInfo info;
+ DownloadHistoryInfo info;
info.db_handle = statement.ColumnInt64(0);
info.path = ColumnFilePath(statement, 1);
@@ -145,7 +145,7 @@ bool DownloadDatabase::CleanUpInProgressEntries() {
return statement.Run();
}
-int64 DownloadDatabase::CreateDownload(const DownloadCreateInfo& info) {
+int64 DownloadDatabase::CreateDownload(const DownloadHistoryInfo& info) {
sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,
"INSERT INTO downloads "
"(full_path, url, start_time, received_bytes, total_bytes, state) "

Powered by Google App Engine
This is Rietveld 408576698