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

Unified Diff: chrome/browser/history/download_types.h

Issue 16533: Convert download manager to FilePath. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/download_types.h
===================================================================
--- chrome/browser/history/download_types.h (revision 7599)
+++ chrome/browser/history/download_types.h (working copy)
@@ -11,6 +11,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/file_path.h"
#include "base/time.h"
// Used for informing the download database of a new download, where we don't
@@ -18,7 +19,7 @@
// vector of these structs for passing us the state of all downloads at
// initialization time (see DownloadQueryInfo below).
struct DownloadCreateInfo {
- DownloadCreateInfo(const std::wstring& path,
+ DownloadCreateInfo(const FilePath& path,
const std::wstring& url,
base::Time start_time,
int64 received_bytes,
@@ -44,9 +45,9 @@
DownloadCreateInfo() : download_id(-1) {}
// DownloadItem fields
- std::wstring path;
+ FilePath path;
std::wstring url;
- std::wstring suggested_path;
+ FilePath suggested_path;
// A number that should be added to the suggested path to make it unique.
// 0 means no number should be appended. Not actually stored in the db.
int path_uniquifier;
@@ -65,7 +66,7 @@
// Whether this download is potentially dangerous (ex: exe, dll, ...).
bool is_dangerous;
// The original name for a dangerous download.
- std::wstring original_name;
+ FilePath original_name;
};
#endif // CHROME_BROWSER_DOWNLOAD_TYPES_H__
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698