Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1154)

Unified Diff: webkit/plugins/ppapi/ppb_file_system_impl.cc

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_system_impl.h ('k') | webkit/plugins/ppapi/ppb_flash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,16 @@
#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 ppapi {
namespace {
@@ -30,15 +31,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 +73,22 @@
} // 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::AsPPB_FileSystem_Impl() {
return this;
}
-const PPB_FileSystem_Dev* FileSystem::GetInterface() {
+const PPB_FileSystem_Dev* PPB_FileSystem_Impl::GetInterface() {
return &ppb_filesystem;
}
-} // namespace pepper
+} // namespace ppapi
+} // namespace webkit
+
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_system_impl.h ('k') | webkit/plugins/ppapi/ppb_flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698