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

Unified Diff: content/browser/download/download_item_impl.h

Issue 9317018: referrer_charset is a lie. It's really the user's default_charset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item_impl.h
===================================================================
--- content/browser/download/download_item_impl.h (revision 119865)
+++ content/browser/download/download_item_impl.h (working copy)
@@ -153,7 +153,7 @@
virtual std::string GetContentDisposition() const OVERRIDE;
virtual std::string GetMimeType() const OVERRIDE;
virtual std::string GetOriginalMimeType() const OVERRIDE;
- virtual std::string GetReferrerCharset() const OVERRIDE;
+ virtual std::string GetDefaultCharset() const OVERRIDE;
virtual std::string GetRemoteAddress() const OVERRIDE;
virtual int64 GetTotalBytes() const OVERRIDE;
virtual void SetTotalBytes(int64 total_bytes) OVERRIDE;
@@ -271,9 +271,8 @@
// which may look at the file extension and first few bytes of the file.
std::string original_mime_type_;
- // The charset of the referring page where the download request comes from.
- // It's used to construct a suggested filename.
- std::string referrer_charset_;
+ // The user's default charset. It's used to construct a suggested filename.
+ std::string default_charset_;
// The remote IP address where the download was fetched from. Copied from
// DownloadCreateInfo::remote_address.
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698