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

Unified Diff: content/browser/download/download_file_impl.cc

Issue 12213066: Use base namespace for FilePath in content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_file_impl.h ('k') | content/browser/download/download_file_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_impl.cc
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index 0498e1c92ad7bd0d38e0f3571715537c0e0a0b41..259d5713c39b5dd53cddb267c06e4bb6d8204b4d 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -29,7 +29,7 @@ int DownloadFile::number_active_objects_ = 0;
DownloadFileImpl::DownloadFileImpl(
scoped_ptr<DownloadSaveInfo> save_info,
- const FilePath& default_download_directory,
+ const base::FilePath& default_download_directory,
const GURL& url,
const GURL& referrer_url,
bool calculate_hash,
@@ -99,10 +99,11 @@ DownloadInterruptReason DownloadFileImpl::AppendDataToFile(
}
void DownloadFileImpl::RenameAndUniquify(
- const FilePath& full_path, const RenameCompletionCallback& callback) {
+ const base::FilePath& full_path,
+ const RenameCompletionCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- FilePath new_path(full_path);
+ base::FilePath new_path(full_path);
int uniquifier =
file_util::GetUniquePathNumber(new_path, FILE_PATH_LITERAL(""));
@@ -129,10 +130,11 @@ void DownloadFileImpl::RenameAndUniquify(
}
void DownloadFileImpl::RenameAndAnnotate(
- const FilePath& full_path, const RenameCompletionCallback& callback) {
+ const base::FilePath& full_path,
+ const RenameCompletionCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- FilePath new_path(full_path);
+ base::FilePath new_path(full_path);
DownloadInterruptReason reason = DOWNLOAD_INTERRUPT_REASON_NONE;
// Short circuit null rename.
@@ -173,7 +175,7 @@ void DownloadFileImpl::Cancel() {
file_.Cancel();
}
-FilePath DownloadFileImpl::FullPath() const {
+base::FilePath DownloadFileImpl::FullPath() const {
return file_.full_path();
}
« no previous file with comments | « content/browser/download/download_file_impl.h ('k') | content/browser/download/download_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698