| Index: webkit/plugins/ppapi/ppb_file_system_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_file_system_impl.cc (revision 0)
|
| +++ webkit/plugins/ppapi/ppb_file_system_impl.cc (working copy)
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/glue/plugins/pepper_file_system.h"
|
| +#include "webkit/plugins/ppapi/ppb_file_system_impl.h"
|
|
|
| #include "base/ref_counted.h"
|
| #include "ppapi/c/dev/ppb_file_system_dev.h"
|
| @@ -12,15 +12,17 @@
|
| #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h"
|
| #include "webkit/fileapi/file_system_types.h"
|
| -#include "webkit/glue/plugins/pepper_directory_reader.h"
|
| -#include "webkit/glue/plugins/pepper_file_callbacks.h"
|
| -#include "webkit/glue/plugins/pepper_plugin_delegate.h"
|
| -#include "webkit/glue/plugins/pepper_plugin_instance.h"
|
| -#include "webkit/glue/plugins/pepper_plugin_module.h"
|
| -#include "webkit/glue/plugins/pepper_resource.h"
|
| -#include "webkit/glue/plugins/pepper_resource_tracker.h"
|
| +#include "webkit/plugins/ppapi/file_callbacks.h"
|
| +#include "webkit/plugins/ppapi/plugin_delegate.h"
|
| +#include "webkit/plugins/ppapi/plugin_instance.h"
|
| +#include "webkit/plugins/ppapi/plugin_module.h"
|
| +#include "webkit/plugins/ppapi/ppb_directory_reader_impl.h"
|
| +#include "webkit/plugins/ppapi/resource.h"
|
| +#include "webkit/plugins/ppapi/resource_tracker.h"
|
|
|
| -namespace pepper {
|
| +namespace webkit {
|
| +namespace plugins {
|
| +namespace ppapi {
|
|
|
| namespace {
|
|
|
| @@ -30,15 +32,16 @@
|
| if (!plugin_instance)
|
| return 0;
|
|
|
| - FileSystem* file_system = new FileSystem(plugin_instance, type);
|
| + PPB_FileSystem_Impl* file_system =
|
| + new PPB_FileSystem_Impl(plugin_instance, type);
|
| return file_system->GetReference();
|
| }
|
|
|
| int32_t Open(PP_Resource file_system_id,
|
| int64 expected_size,
|
| PP_CompletionCallback callback) {
|
| - scoped_refptr<FileSystem> file_system(
|
| - Resource::GetAs<FileSystem>(file_system_id));
|
| + scoped_refptr<PPB_FileSystem_Impl> file_system(
|
| + Resource::GetAs<PPB_FileSystem_Impl>(file_system_id));
|
| if (!file_system)
|
| return PP_ERROR_BADRESOURCE;
|
|
|
| @@ -71,19 +74,23 @@
|
|
|
| } // namespace
|
|
|
| -FileSystem::FileSystem(PluginInstance* instance, PP_FileSystemType_Dev type)
|
| +PPB_FileSystem_Impl::PPB_FileSystem_Impl(PluginInstance* instance,
|
| + PP_FileSystemType_Dev type)
|
| : Resource(instance->module()),
|
| instance_(instance),
|
| type_(type),
|
| opened_(false) {
|
| }
|
|
|
| -FileSystem* FileSystem::AsFileSystem() {
|
| +PPB_FileSystem_Impl* PPB_FileSystem_Impl::AsFileSystem() {
|
| return this;
|
| }
|
|
|
| -const PPB_FileSystem_Dev* FileSystem::GetInterface() {
|
| +const PPB_FileSystem_Dev* PPB_FileSystem_Impl::GetInterface() {
|
| return &ppb_filesystem;
|
| }
|
|
|
| -} // namespace pepper
|
| +} // namespace ppapi
|
| +} // namespace plugins
|
| +} // namespace webkit
|
| +
|
|
|