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

Unified Diff: webkit/chromeos/fileapi/memory_file_util.cc

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « webkit/chromeos/fileapi/memory_file_util.h ('k') | webkit/chromeos/fileapi/memory_file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/memory_file_util.cc
diff --git a/webkit/chromeos/fileapi/memory_file_util.cc b/webkit/chromeos/fileapi/memory_file_util.cc
index dcedf5a2982695afef2f719f0b11b85cd8f3d916..6d79687c3d5145004e66fa384656339834c95ac9 100644
--- a/webkit/chromeos/fileapi/memory_file_util.cc
+++ b/webkit/chromeos/fileapi/memory_file_util.cc
@@ -134,7 +134,7 @@ MemoryFileUtil::FileEntry::FileEntry()
MemoryFileUtil::FileEntry::~FileEntry() {
}
-MemoryFileUtil::MemoryFileUtil(const FilePath& root_path)
+MemoryFileUtil::MemoryFileUtil(const base::FilePath& root_path)
: read_directory_buffer_size_(kDefaultReadDirectoryBufferSize) {
FileEntry root;
root.is_directory = true;
@@ -179,7 +179,7 @@ MemoryFileUtil::~MemoryFileUtil() {
// - OpenVerifiedFile
//
void MemoryFileUtil::Open(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int flags,
const OpenCallback& callback) {
int create_flag = flags & (base::PLATFORM_FILE_OPEN |
@@ -230,7 +230,7 @@ void MemoryFileUtil::Open(
}
void MemoryFileUtil::GetFileInfo(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const GetFileInfoCallback& callback) {
MessageLoop::current()->PostTask(
FROM_HERE,
@@ -239,7 +239,7 @@ void MemoryFileUtil::GetFileInfo(
}
void MemoryFileUtil::Create(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const StatusCallback& callback) {
MessageLoop::current()->PostTask(
FROM_HERE,
@@ -248,7 +248,7 @@ void MemoryFileUtil::Create(
}
void MemoryFileUtil::Truncate(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int64 length,
const StatusCallback& callback) {
MessageLoop::current()->PostTask(
@@ -258,7 +258,7 @@ void MemoryFileUtil::Truncate(
}
void MemoryFileUtil::Touch(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const base::Time& last_access_time,
const base::Time& last_modified_time,
const StatusCallback& callback) {
@@ -270,7 +270,7 @@ void MemoryFileUtil::Touch(
}
void MemoryFileUtil::Remove(
- const FilePath& file_path,
+ const base::FilePath& file_path,
bool recursive,
const StatusCallback& callback) {
if (recursive) {
@@ -289,7 +289,7 @@ void MemoryFileUtil::Remove(
}
void MemoryFileUtil::CreateDirectory(
- const FilePath& dir_path,
+ const base::FilePath& dir_path,
const StatusCallback& callback) {
MessageLoop::current()->PostTask(
FROM_HERE,
@@ -299,16 +299,16 @@ void MemoryFileUtil::CreateDirectory(
}
void MemoryFileUtil::ReadDirectory(
- const FilePath& dir_path,
+ const base::FilePath& dir_path,
const ReadDirectoryCallback& callback) {
MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&MemoryFileUtil::DoReadDirectory,
base::Unretained(this), dir_path.StripTrailingSeparators(),
- FilePath(), callback));
+ base::FilePath(), callback));
}
-void MemoryFileUtil::DoGetFileInfo(const FilePath& file_path,
+void MemoryFileUtil::DoGetFileInfo(const base::FilePath& file_path,
const GetFileInfoCallback& callback) {
base::PlatformFileInfo file_info;
@@ -334,7 +334,7 @@ void MemoryFileUtil::DoGetFileInfo(const FilePath& file_path,
}
void MemoryFileUtil::DoCreate(
- const FilePath& file_path,
+ const base::FilePath& file_path,
bool is_directory,
const StatusCallback& callback) {
if (FileExists(file_path)) {
@@ -356,7 +356,7 @@ void MemoryFileUtil::DoCreate(
}
void MemoryFileUtil::DoTruncate(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int64 length,
const StatusCallback& callback) {
FileIterator file_it = files_.find(file_path);
@@ -374,7 +374,7 @@ void MemoryFileUtil::DoTruncate(
}
void MemoryFileUtil::DoTouch(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const base::Time& last_modified_time,
const StatusCallback& callback) {
FileIterator file_it = files_.find(file_path);
@@ -390,7 +390,7 @@ void MemoryFileUtil::DoTouch(
}
void MemoryFileUtil::DoRemoveSingleFile(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const StatusCallback& callback) {
FileIterator file_it = files_.find(file_path);
if (file_it == files_.end()) {
@@ -416,7 +416,7 @@ void MemoryFileUtil::DoRemoveSingleFile(
}
void MemoryFileUtil::DoRemoveRecursive(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const StatusCallback& callback) {
FileIterator file_it = files_.find(file_path);
if (file_it == files_.end()) {
@@ -445,10 +445,10 @@ void MemoryFileUtil::DoRemoveRecursive(
}
void MemoryFileUtil::DoReadDirectory(
- const FilePath& dir_path,
- const FilePath& in_from,
+ const base::FilePath& dir_path,
+ const base::FilePath& in_from,
const ReadDirectoryCallback& callback) {
- FilePath from = in_from;
+ base::FilePath from = in_from;
read_directory_buffer_.clear();
if (!FileExists(dir_path)) {
@@ -510,7 +510,7 @@ void MemoryFileUtil::DoReadDirectory(
}
void MemoryFileUtil::OpenVerifiedFile(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int flags,
const OpenCallback& callback) {
FileIterator file_it = files_.find(file_path);
@@ -523,7 +523,7 @@ void MemoryFileUtil::OpenVerifiedFile(
}
void MemoryFileUtil::DidGetFileInfoForOpen(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int flags,
const OpenCallback& callback,
PlatformFileError get_info_result,
@@ -550,7 +550,7 @@ void MemoryFileUtil::DidGetFileInfoForOpen(
}
void MemoryFileUtil::OpenTruncatedFileOrCreate(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int flags,
const OpenCallback& callback,
PlatformFileError result) {
@@ -571,7 +571,7 @@ void MemoryFileUtil::OpenTruncatedFileOrCreate(
}
void MemoryFileUtil::DidCreateOrTruncateForOpen(
- const FilePath& file_path,
+ const base::FilePath& file_path,
int flags,
int64 size,
const OpenCallback& callback,
« no previous file with comments | « webkit/chromeos/fileapi/memory_file_util.h ('k') | webkit/chromeos/fileapi/memory_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698