summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_manager.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-25 03:15:58 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-25 03:15:58 +0000
commite435d6b7103f0d0c57133121454458bda6ccb69f (patch)
tree191cc13161304ec78aed429ff47c1000a3fb97c6 /chrome/browser/download/download_manager.h
parent354589750cf3959506e5c2a34e66cc462fb7f3c4 (diff)
downloadchromium_src-e435d6b7103f0d0c57133121454458bda6ccb69f.zip
chromium_src-e435d6b7103f0d0c57133121454458bda6ccb69f.tar.gz
chromium_src-e435d6b7103f0d0c57133121454458bda6ccb69f.tar.bz2
Implement mimetype sniffing for extensions.
abarth: can you review the changes to mime_sniffer.cc? paul: everything else? BUG=13296 TEST=Added unit tests Review URL: http://codereview.chromium.org/159345 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_manager.h')
-rw-r--r--chrome/browser/download/download_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index f1b1030..f39308e 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -109,6 +109,7 @@ class DownloadItem {
int path_uniquifier,
const GURL& url,
const GURL& referrer_url,
+ const std::string& mime_type,
const FilePath& original_name,
const base::Time start_time,
int64 download_size,
@@ -186,6 +187,7 @@ class DownloadItem {
void set_path_uniquifier(int uniquifier) { path_uniquifier_ = uniquifier; }
GURL url() const { return url_; }
GURL referrer_url() const { return referrer_url_; }
+ std::string mime_type() const { return mime_type_; }
int64 total_bytes() const { return total_bytes_; }
void set_total_bytes(int64 total_bytes) { total_bytes_ = total_bytes; }
int64 received_bytes() const { return received_bytes_; }
@@ -238,6 +240,9 @@ class DownloadItem {
// The URL of the page that initiated the download.
GURL referrer_url_;
+ // The mimetype of the download
+ std::string mime_type_;
+
// Total bytes expected
int64 total_bytes_;