summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/fileapi/file_system_callback_dispatcher.h6
-rw-r--r--webkit/fileapi/file_system_operation.cc8
-rw-r--r--webkit/fileapi/file_system_operation.h2
-rw-r--r--webkit/fileapi/file_system_operation_unittest.cc6
-rw-r--r--webkit/glue/plugins/pepper_file_callbacks.cc2
-rw-r--r--webkit/glue/plugins/pepper_file_callbacks.h2
-rw-r--r--webkit/tools/test_shell/simple_file_system.cc4
-rw-r--r--webkit/tools/test_shell/simple_file_writer.cc2
8 files changed, 17 insertions, 15 deletions
diff --git a/webkit/fileapi/file_system_callback_dispatcher.h b/webkit/fileapi/file_system_callback_dispatcher.h
index ea7c442..0b4c25b 100644
--- a/webkit/fileapi/file_system_callback_dispatcher.h
+++ b/webkit/fileapi/file_system_callback_dispatcher.h
@@ -33,7 +33,7 @@ class FileSystemCallbackDispatcher {
// all contents (the subsets reported in any two calls are disjoint), and
// |has_more| will be true, except for the last chunk.
virtual void DidReadDirectory(
- const std::vector<base::file_util_proxy::Entry>& entries,
+ const std::vector<base::FileUtilProxy::Entry>& entries,
bool has_more) = 0;
// Callback for opening a file system. Called with a name and root path for
@@ -48,6 +48,6 @@ class FileSystemCallbackDispatcher {
virtual void DidWrite(int64 bytes, bool complete) = 0;
};
-} // namespace fileapi
+} // namespace fileapi
-#endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
+#endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index 0e2e823..fe07758 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -256,8 +256,9 @@ void FileSystemOperation::DidDirectoryExists(
dispatcher_->DidSucceed();
else
dispatcher_->DidFail(base::PLATFORM_FILE_ERROR_FAILED);
- } else
+ } else {
dispatcher_->DidFail(rv);
+ }
}
void FileSystemOperation::DidFileExists(
@@ -268,8 +269,9 @@ void FileSystemOperation::DidFileExists(
dispatcher_->DidFail(base::PLATFORM_FILE_ERROR_FAILED);
else
dispatcher_->DidSucceed();
- } else
+ } else {
dispatcher_->DidFail(rv);
+ }
}
void FileSystemOperation::DidGetMetadata(
@@ -283,7 +285,7 @@ void FileSystemOperation::DidGetMetadata(
void FileSystemOperation::DidReadDirectory(
base::PlatformFileError rv,
- const std::vector<base::file_util_proxy::Entry>& entries) {
+ const std::vector<base::FileUtilProxy::Entry>& entries) {
if (rv == base::PLATFORM_FILE_OK)
dispatcher_->DidReadDirectory(entries, false /* has_more */);
else
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index 6b4599a..d76513f 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -104,7 +104,7 @@ class FileSystemOperation {
void DidReadDirectory(
base::PlatformFileError rv,
- const std::vector<base::file_util_proxy::Entry>& entries);
+ const std::vector<base::FileUtilProxy::Entry>& entries);
void DidWrite(
base::PlatformFileError rv,
diff --git a/webkit/fileapi/file_system_operation_unittest.cc b/webkit/fileapi/file_system_operation_unittest.cc
index fb300bf..370d95c 100644
--- a/webkit/fileapi/file_system_operation_unittest.cc
+++ b/webkit/fileapi/file_system_operation_unittest.cc
@@ -45,7 +45,7 @@ class MockDispatcher : public FileSystemCallbackDispatcher {
}
virtual void DidReadDirectory(
- const std::vector<base::file_util_proxy::Entry>& entries,
+ const std::vector<base::FileUtilProxy::Entry>& entries,
bool /* has_more */) {
entries_ = entries;
}
@@ -62,7 +62,7 @@ class MockDispatcher : public FileSystemCallbackDispatcher {
int status() const { return status_; }
int request_id() const { return request_id_; }
const base::PlatformFileInfo& info() const { return info_; }
- const std::vector<base::file_util_proxy::Entry>& entries() const {
+ const std::vector<base::FileUtilProxy::Entry>& entries() const {
return entries_;
}
@@ -70,7 +70,7 @@ class MockDispatcher : public FileSystemCallbackDispatcher {
int status_;
int request_id_;
base::PlatformFileInfo info_;
- std::vector<base::file_util_proxy::Entry> entries_;
+ std::vector<base::FileUtilProxy::Entry> entries_;
};
class FileSystemOperationTest : public testing::Test {
diff --git a/webkit/glue/plugins/pepper_file_callbacks.cc b/webkit/glue/plugins/pepper_file_callbacks.cc
index e07b2b5..fe6ad95 100644
--- a/webkit/glue/plugins/pepper_file_callbacks.cc
+++ b/webkit/glue/plugins/pepper_file_callbacks.cc
@@ -55,7 +55,7 @@ void FileCallbacks::DidReadMetadata(
}
void FileCallbacks::DidReadDirectory(
- const std::vector<base::file_util_proxy::Entry>&, bool) {
+ const std::vector<base::FileUtilProxy::Entry>&, bool) {
NOTREACHED();
}
diff --git a/webkit/glue/plugins/pepper_file_callbacks.h b/webkit/glue/plugins/pepper_file_callbacks.h
index 41f0b8f..20cb8d3 100644
--- a/webkit/glue/plugins/pepper_file_callbacks.h
+++ b/webkit/glue/plugins/pepper_file_callbacks.h
@@ -34,7 +34,7 @@ class FileCallbacks : public fileapi::FileSystemCallbackDispatcher {
virtual void DidSucceed();
virtual void DidReadMetadata(const base::PlatformFileInfo& file_info);
virtual void DidReadDirectory(
- const std::vector<base::file_util_proxy::Entry>&, bool);
+ const std::vector<base::FileUtilProxy::Entry>&, bool);
virtual void DidOpenFileSystem(const std::string&,
const FilePath& root_path);
virtual void DidFail(base::PlatformFileError error_code);
diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc
index ae77ce4..563ff34 100644
--- a/webkit/tools/test_shell/simple_file_system.cc
+++ b/webkit/tools/test_shell/simple_file_system.cc
@@ -73,10 +73,10 @@ class TestShellFileSystemCallbackDispatcher
}
virtual void DidReadDirectory(
- const std::vector<base::file_util_proxy::Entry>& entries,
+ const std::vector<base::FileUtilProxy::Entry>& entries,
bool has_more) {
std::vector<WebFileSystemEntry> web_entries_vector;
- for (std::vector<base::file_util_proxy::Entry>::const_iterator it =
+ for (std::vector<base::FileUtilProxy::Entry>::const_iterator it =
entries.begin(); it != entries.end(); ++it) {
WebFileSystemEntry entry;
entry.name = webkit_glue::FilePathStringToWebString(it->name);
diff --git a/webkit/tools/test_shell/simple_file_writer.cc b/webkit/tools/test_shell/simple_file_writer.cc
index 0c1a434..bb4758f 100644
--- a/webkit/tools/test_shell/simple_file_writer.cc
+++ b/webkit/tools/test_shell/simple_file_writer.cc
@@ -99,7 +99,7 @@ class SimpleFileWriter::IOThreadProxy
}
virtual void DidReadDirectory(
- const std::vector<base::file_util_proxy::Entry>& entries,
+ const std::vector<base::FileUtilProxy::Entry>& entries,
bool has_more) {
NOTREACHED();
}