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

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

Issue 319703002: Add mime type information to the download database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DownloadUIController_HistoryDownload test failure Created 6 years, 6 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
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/download_row.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/download_row.h
diff --git a/chrome/browser/history/download_row.h b/chrome/browser/history/download_row.h
index d38eec5268bb62664d0b7bcd9167121a611a09bb..a0c094fb294af7369c42eb2e2ed686a791bed393 100644
--- a/chrome/browser/history/download_row.h
+++ b/chrome/browser/history/download_row.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_ROW_H_
#define CHROME_BROWSER_HISTORY_DOWNLOAD_ROW_H_
+#include <string>
#include <vector>
#include "base/files/file_path.h"
@@ -26,6 +27,8 @@ struct DownloadRow {
const base::FilePath& target_path,
const std::vector<GURL>& url_chain,
const GURL& referrer,
+ const std::string& mime_type,
+ const std::string& original_mime_type,
const base::Time& start,
const base::Time& end,
const std::string& etag,
@@ -57,6 +60,12 @@ struct DownloadRow {
// The URL that referred us. Is not changed by UpdateDownload().
GURL referrer_url;
+ // The MIME type of the download, might be based on heuristics.
+ std::string mime_type;
+
+ // The original MIME type of the download.
+ std::string original_mime_type;
+
// The time when the download started. Is not changed by UpdateDownload().
base::Time start_time;
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/download_row.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698