summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation.cc
diff options
context:
space:
mode:
authorericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 22:26:50 +0000
committerericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 22:26:50 +0000
commitbacef3cbbc55efebb2573194d329eabac5f5c7e3 (patch)
treecaa96791f328bb36601bcb839e6544f3cfdf8290 /webkit/fileapi/file_system_operation.cc
parent748ce719f7594754695dfbd17b35618a58a5ffd1 (diff)
downloadchromium_src-bacef3cbbc55efebb2573194d329eabac5f5c7e3.zip
chromium_src-bacef3cbbc55efebb2573194d329eabac5f5c7e3.tar.gz
chromium_src-bacef3cbbc55efebb2573194d329eabac5f5c7e3.tar.bz2
Remove the path from PlatformFileInfo; it's cleaner just to pass it along as a
separate parameter, and not clutter up a base type. BUG:none TEST:none Review URL: http://codereview.chromium.org/6731033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation.cc')
-rw-r--r--webkit/fileapi/file_system_operation.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index 1555cd7..4ddfd0c 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -454,7 +454,8 @@ void FileSystemOperation::DidFinishFileOperation(
void FileSystemOperation::DidDirectoryExists(
base::PlatformFileError rv,
- const base::PlatformFileInfo& file_info) {
+ const base::PlatformFileInfo& file_info,
+ const FilePath& unused) {
if (rv == base::PLATFORM_FILE_OK) {
if (file_info.is_directory)
dispatcher_->DidSucceed();
@@ -468,7 +469,8 @@ void FileSystemOperation::DidDirectoryExists(
void FileSystemOperation::DidFileExists(
base::PlatformFileError rv,
- const base::PlatformFileInfo& file_info) {
+ const base::PlatformFileInfo& file_info,
+ const FilePath& unused) {
if (rv == base::PLATFORM_FILE_OK) {
if (file_info.is_directory)
dispatcher_->DidFail(base::PLATFORM_FILE_ERROR_NOT_A_FILE);
@@ -482,9 +484,10 @@ void FileSystemOperation::DidFileExists(
void FileSystemOperation::DidGetMetadata(
base::PlatformFileError rv,
- const base::PlatformFileInfo& file_info) {
+ const base::PlatformFileInfo& file_info,
+ const FilePath& platform_path) {
if (rv == base::PLATFORM_FILE_OK)
- dispatcher_->DidReadMetadata(file_info);
+ dispatcher_->DidReadMetadata(file_info, platform_path);
else
dispatcher_->DidFail(rv);
delete this;