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

Side by Side Diff: chrome/browser/history/download_types.h

Issue 83002: download filename fix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Download creation struct used for querying the history service. 5 // Download creation struct used for querying the history service.
6 6
7 #ifndef CHROME_BROWSER_DOWNLOAD_TYPES_H_ 7 #ifndef CHROME_BROWSER_DOWNLOAD_TYPES_H_
8 #define CHROME_BROWSER_DOWNLOAD_TYPES_H_ 8 #define CHROME_BROWSER_DOWNLOAD_TYPES_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int render_view_id; 62 int render_view_id;
63 int request_id; 63 int request_id;
64 int64 db_handle; 64 int64 db_handle;
65 std::string content_disposition; 65 std::string content_disposition;
66 std::string mime_type; 66 std::string mime_type;
67 bool save_as; 67 bool save_as;
68 // Whether this download is potentially dangerous (ex: exe, dll, ...). 68 // Whether this download is potentially dangerous (ex: exe, dll, ...).
69 bool is_dangerous; 69 bool is_dangerous;
70 // The original name for a dangerous download. 70 // The original name for a dangerous download.
71 FilePath original_name; 71 FilePath original_name;
72 // The charset of the referring page where the download request comes from.
73 // It's used to construct a suggested filename.
74 std::string referrer_charset;
72 }; 75 };
73 76
74 #endif // CHROME_BROWSER_DOWNLOAD_TYPES_H_ 77 #endif // CHROME_BROWSER_DOWNLOAD_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698