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

Unified Diff: chrome/browser/download/download_manager.h

Issue 160254: Merge 21612 - Implement mimetype sniffing for extensions.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 5 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 | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.h
===================================================================
--- chrome/browser/download/download_manager.h (revision 21813)
+++ chrome/browser/download/download_manager.h (working copy)
@@ -109,6 +109,7 @@
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 @@
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 @@
// 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_;
Property changes on: chrome\browser\download\download_manager.h
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/download/download_manager.h:r21612
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698