| Index: content/common/fileapi/webfilesystem_callback_dispatcher.h
|
| diff --git a/content/common/fileapi/webfilesystem_callback_dispatcher.h b/content/common/fileapi/webfilesystem_callback_dispatcher.h
|
| index ce2178bbb02f9c7510494d60e1d40989eeba07c0..ac5a6c4fdb7e014b26c137c30fce68e8a988600a 100644
|
| --- a/content/common/fileapi/webfilesystem_callback_dispatcher.h
|
| +++ b/content/common/fileapi/webfilesystem_callback_dispatcher.h
|
| @@ -6,8 +6,8 @@
|
| #define CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/files/file_util_proxy.h"
|
| #include "base/platform_file.h"
|
| -#include "webkit/fileapi/file_system_callback_dispatcher.h"
|
|
|
| class GURL;
|
|
|
| @@ -17,30 +17,35 @@ class WebFileSystemCallbacks;
|
|
|
| namespace content {
|
|
|
| -class WebFileSystemCallbackDispatcher
|
| - : public fileapi::FileSystemCallbackDispatcher {
|
| +// Glue implementation between callbacks for FileSystemDispatcher and
|
| +// WebKit::WebFileSystemCallbacks.
|
| +class WebFileSystemCallbackDispatcher {
|
| public:
|
| explicit WebFileSystemCallbackDispatcher(
|
| WebKit::WebFileSystemCallbacks* callbacks);
|
|
|
| - // FileSystemCallbackDispatcher implementation
|
| - virtual void DidSucceed() OVERRIDE;
|
| - virtual void DidReadMetadata(
|
| + void DidFinish(base::PlatformFileError);
|
| + void DidReadMetadata(
|
| + base::PlatformFileError error,
|
| const base::PlatformFileInfo& file_info,
|
| - const base::FilePath& platform_path) OVERRIDE;
|
| - virtual void DidCreateSnapshotFile(
|
| + const base::FilePath& platform_path);
|
| + void DidCreateSnapshotFile(
|
| + base::PlatformFileError error,
|
| const base::PlatformFileInfo& file_info,
|
| - const base::FilePath& platform_path) OVERRIDE;
|
| - virtual void DidReadDirectory(
|
| + const base::FilePath& platform_path);
|
| + void DidReadDirectory(
|
| + base::PlatformFileError error,
|
| const std::vector<base::FileUtilProxy::Entry>& entries,
|
| - bool has_more) OVERRIDE;
|
| - virtual void DidOpenFileSystem(const std::string&,
|
| - const GURL&) OVERRIDE;
|
| - virtual void DidFail(base::PlatformFileError) OVERRIDE;
|
| - virtual void DidWrite(int64 bytes, bool complete) OVERRIDE;
|
| + bool has_more);
|
| + void DidOpenFileSystem(
|
| + base::PlatformFileError error,
|
| + const std::string& name,
|
| + const GURL& root);
|
|
|
| private:
|
| WebKit::WebFileSystemCallbacks* callbacks_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WebFileSystemCallbackDispatcher);
|
| };
|
|
|
| } // namespace content
|
|
|