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

Unified Diff: net/url_request/url_request_context.h

Issue 83002: download filename fix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « net/base/net_util_unittest.cc ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context.h
===================================================================
--- net/url_request/url_request_context.h (revision 15065)
+++ net/url_request/url_request_context.h (working copy)
@@ -70,6 +70,13 @@
return EmptyString();
}
+ // In general, referrer_charset is not known when URLRequestContext is
+ // constructed. So, we need a setter.
+ const std::string& referrer_charset() const { return referrer_charset_; }
+ void set_referrer_charset(const std::string& charset) {
+ referrer_charset_ = charset;
+ }
+
protected:
friend class base::RefCountedThreadSafe<URLRequestContext>;
@@ -85,6 +92,10 @@
net::FtpAuthCache ftp_auth_cache_;
std::string accept_language_;
std::string accept_charset_;
+ // The charset of the referrer where this request comes from. It's not
+ // used in communication with a server but is used to construct a suggested
+ // filename for file download.
+ std::string referrer_charset_;
private:
DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698