Index: content/renderer/pepper/pepper_file_io_host.cc |
diff --git a/content/renderer/pepper/pepper_file_io_host.cc b/content/renderer/pepper/pepper_file_io_host.cc |
index b96edf509826d4d4d202f2ba8dd1a70495666792..ae4042db7bc639029f8e9c12f84836de8ef96177 100644 |
--- a/content/renderer/pepper/pepper_file_io_host.cc |
+++ b/content/renderer/pepper/pepper_file_io_host.cc |
@@ -5,11 +5,13 @@ |
#include "content/renderer/pepper/pepper_file_io_host.h" |
#include "base/bind.h" |
+#include "base/callback.h" |
#include "base/callback_helpers.h" |
#include "base/command_line.h" |
#include "base/files/file_util_proxy.h" |
#include "content/public/common/content_client.h" |
#include "content/public/renderer/content_renderer_client.h" |
+#include "content/renderer/pepper/null_file_system_callback_dispatcher.h" |
#include "ppapi/c/pp_errors.h" |
#include "ppapi/host/dispatch_host_message.h" |
#include "ppapi/host/ppapi_host.h" |
@@ -17,7 +19,6 @@ |
#include "ppapi/shared_impl/file_type_conversion.h" |
#include "ppapi/shared_impl/time_conversion.h" |
#include "ppapi/thunk/enter.h" |
-#include "webkit/fileapi/file_system_callback_dispatcher.h" |
#include "webkit/plugins/ppapi/file_callbacks.h" |
#include "webkit/plugins/ppapi/host_globals.h" |
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
@@ -47,7 +48,7 @@ static const int32_t kMaxReadSize = 32 * 1024 * 1024; // 32MB |
typedef base::Callback<void (base::PlatformFileError)> PlatformGeneralCallback; |
class PlatformGeneralCallbackTranslator |
- : public fileapi::FileSystemCallbackDispatcher { |
+ : public NullFileSystemCallbackDispatcher { |
public: |
explicit PlatformGeneralCallbackTranslator( |
const PlatformGeneralCallback& callback) |
@@ -59,40 +60,6 @@ class PlatformGeneralCallbackTranslator |
callback_.Run(base::PLATFORM_FILE_OK); |
} |
- virtual void DidReadMetadata(const base::PlatformFileInfo& file_info, |
- const base::FilePath& platform_path) OVERRIDE { |
- NOTREACHED(); |
- } |
- |
- virtual void DidCreateSnapshotFile( |
- const base::PlatformFileInfo& file_info, |
- const base::FilePath& platform_path) OVERRIDE { |
- NOTREACHED(); |
- } |
- |
- virtual void DidReadDirectory( |
- const std::vector<base::FileUtilProxy::Entry>& entries, |
- bool has_more) OVERRIDE { |
- NOTREACHED(); |
- } |
- |
- virtual void DidOpenFileSystem(const std::string& name, |
- const GURL& root) OVERRIDE { |
- NOTREACHED(); |
- } |
- |
- virtual void DidFail(base::PlatformFileError error_code) OVERRIDE { |
- callback_.Run(error_code); |
yzshen1
2013/04/08 21:05:16
Did you miss one?
victorhsieh
2013/04/08 23:44:38
Thanks for catching.
And I removed ExecutePlatfor
|
- } |
- |
- virtual void DidWrite(int64 bytes, bool complete) OVERRIDE { |
- NOTREACHED(); |
- } |
- |
- virtual void DidOpenFile(base::PlatformFile file) OVERRIDE { |
- NOTREACHED(); |
- } |
- |
private: |
PlatformGeneralCallback callback_; |
}; |