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

Side by Side Diff: content/browser/download/download_create_info.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, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // True if we should display the 'save as...' UI and prompt the user 94 // True if we should display the 'save as...' UI and prompt the user
95 // for the download location. 95 // for the download location.
96 // False if the UI should be suppressed and the download performed to the 96 // False if the UI should be suppressed and the download performed to the
97 // default location. 97 // default location.
98 bool prompt_user_for_save_location; 98 bool prompt_user_for_save_location;
99 99
100 // The original name for a dangerous download. 100 // The original name for a dangerous download.
101 FilePath original_name; 101 FilePath original_name;
102 102
103 // The charset of the referring page where the download request comes from. 103 // The user's default charset. It's used to construct a suggested filename.
104 // It's used to construct a suggested filename. 104 std::string default_charset;
105 std::string referrer_charset;
106 105
107 // The download file save info. 106 // The download file save info.
108 DownloadSaveInfo save_info; 107 DownloadSaveInfo save_info;
109 108
110 // The remote IP address where the download was fetched from. Copied from 109 // The remote IP address where the download was fetched from. Copied from
111 // UrlRequest::GetSocketAddress(). 110 // UrlRequest::GetSocketAddress().
112 std::string remote_address; 111 std::string remote_address;
113 }; 112 };
114 113
115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698