diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 05:12:33 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 05:12:33 +0000 |
commit | a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e (patch) | |
tree | bdd4dac76e6034ef6cf33450e203269a715ea0e6 /webkit/chromeos/fileapi/file_util_async.h | |
parent | 8bc574c57115e9ffd0169f33131c0865997dcb35 (diff) | |
download | chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.zip chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.tar.gz chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.tar.bz2 |
Add FilePath to base namespace.
This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes.
Review URL: https://codereview.chromium.org/12163003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/chromeos/fileapi/file_util_async.h')
-rw-r--r-- | webkit/chromeos/fileapi/file_util_async.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webkit/chromeos/fileapi/file_util_async.h b/webkit/chromeos/fileapi/file_util_async.h index 3cec09d..6d3cca6 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. |