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

Unified Diff: webkit/chromeos/fileapi/file_util_async.h

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
Index: webkit/chromeos/fileapi/file_util_async.h
diff --git a/webkit/chromeos/fileapi/file_util_async.h b/webkit/chromeos/fileapi/file_util_async.h
index 3cec09dbd6ac35083199fc0602186de15dc3e3c6..6d3cca6dbe709bb93d96e2181523884f4fddb5f8 100644
--- a/webkit/chromeos/fileapi/file_util_async.h
+++ b/webkit/chromeos/fileapi/file_util_async.h
@@ -51,33 +51,33 @@ class FileUtilAsync {
// PLATFORM_FILE_OK is passed to |callback| with a pointer to newly
// created AsyncFileStream object. The caller should delete the
// stream. On failure, an error code is passed instead.
- virtual void Open(const FilePath& file_path,
+ virtual void Open(const base::FilePath& file_path,
int file_flags, // PlatformFileFlags
const OpenCallback& callback) = 0;
// Gets file info of the given |file_path|. On success,
// PLATFORM_FILE_OK is passed to |callback| with the the obtained file
// info. On failure, an error code is passed instead.
- virtual void GetFileInfo(const FilePath& file_path,
+ virtual void GetFileInfo(const base::FilePath& file_path,
const GetFileInfoCallback& callback) = 0;
// Creates a file of the given |file_path|. On success,
// PLATFORM_FILE_OK is passed to |callback|. On failure, an error code
// is passed instead.
- virtual void Create(const FilePath& file_path,
+ virtual void Create(const base::FilePath& file_path,
const StatusCallback& callback) = 0;
// Truncates a file of the given |file_path| to |length|. On success,
// PLATFORM_FILE_OK is passed to |callback|. On failure, an error code
// is passed instead.
- virtual void Truncate(const FilePath& file_path,
+ virtual void Truncate(const base::FilePath& file_path,
int64 length,
const StatusCallback& callback) = 0;
// Modifies the timestamps of a file of the given |file_path|. On
// success, PLATFORM_FILE_OK is passed to |callback|. On failure, an
// error code is passed instead.
- virtual void Touch(const FilePath& file_path,
+ virtual void Touch(const base::FilePath& file_path,
const base::Time& last_access_time,
const base::Time& last_modified_time,
const StatusCallback& callback) = 0;
@@ -86,14 +86,14 @@ class FileUtilAsync {
// is true, removes the contents of the given directory recursively. On
// success, PLATFORM_FILE_OK is passed to |callback|. On failure, an
// error code is passed instead.
- virtual void Remove(const FilePath& file_path,
+ virtual void Remove(const base::FilePath& file_path,
bool recursive,
const StatusCallback& callback) = 0;
// Creates a directory of the given |dir_path|. On success,
// PLATFORM_FILE_OK is passed to |callback|. On failure, an error code
// is passed instead.
- virtual void CreateDirectory(const FilePath& dir_path,
+ virtual void CreateDirectory(const base::FilePath& dir_path,
const StatusCallback& callback) = 0;
// Reads a directory of the given |dir_path|. On success,
@@ -112,7 +112,7 @@ class FileUtilAsync {
// before callback is actually called.
//
// TODO(olege): Maybe make it possible to read only a part of the directory.
- virtual void ReadDirectory(const FilePath& dir_path,
+ virtual void ReadDirectory(const base::FilePath& dir_path,
const ReadDirectoryCallback& callback) = 0;
// TODO(olege): Add LocalCopy and LocalMove.
« no previous file with comments | « webkit/chromeos/fileapi/file_access_permissions_unittest.cc ('k') | webkit/chromeos/fileapi/memory_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698