Index: webkit/plugins/ppapi/ppb_file_ref_impl.h |
=================================================================== |
--- webkit/plugins/ppapi/ppb_file_ref_impl.h (revision 0) |
+++ webkit/plugins/ppapi/ppb_file_ref_impl.h (working copy) |
@@ -2,46 +2,47 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FILE_REF_H_ |
-#define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_REF_H_ |
+#ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
+#define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
#include <string> |
#include "base/file_path.h" |
#include "ppapi/c/dev/ppb_file_ref_dev.h" |
-#include "webkit/glue/plugins/pepper_resource.h" |
+#include "webkit/plugins/ppapi/resource.h" |
-namespace pepper { |
+namespace webkit { |
+namespace ppapi { |
-class FileSystem; |
+class PPB_FileSystem_Impl; |
class PluginInstance; |
class PluginModule; |
-class FileRef : public Resource { |
+class PPB_FileRef_Impl : public Resource { |
public: |
- FileRef(); |
- FileRef(PluginModule* module, |
- scoped_refptr<FileSystem> file_system, |
- const std::string& validated_path); |
- FileRef(PluginModule* module, |
- const FilePath& external_file_path); |
- virtual ~FileRef(); |
+ PPB_FileRef_Impl(); |
+ PPB_FileRef_Impl(PluginModule* module, |
+ scoped_refptr<PPB_FileSystem_Impl> file_system, |
+ const std::string& validated_path); |
+ PPB_FileRef_Impl(PluginModule* module, |
+ const FilePath& external_file_path); |
+ virtual ~PPB_FileRef_Impl(); |
// Returns a pointer to the interface implementing PPB_FileRef that is |
// exposed to the plugin. |
static const PPB_FileRef_Dev* GetInterface(); |
// Resource overrides. |
- virtual FileRef* AsFileRef(); |
+ virtual PPB_FileRef_Impl* AsPPB_FileRef_Impl(); |
// PPB_FileRef implementation. |
std::string GetName() const; |
- scoped_refptr<FileRef> GetParent(); |
+ scoped_refptr<PPB_FileRef_Impl> GetParent(); |
- // Returns the file system to which this FileRef belongs. |
- scoped_refptr<FileSystem> GetFileSystem() const; |
+ // Returns the file system to which this PPB_FileRef_Impl belongs. |
+ scoped_refptr<PPB_FileSystem_Impl> GetFileSystem() const; |
- // Returns the type of the file system to which this FileRef belongs. |
+ // Returns the type of the file system to which this PPB_FileRef_Impl belongs. |
PP_FileSystemType_Dev GetFileSystemType() const; |
// Returns the virtual path (i.e., the path that the pepper plugin sees) |
@@ -52,11 +53,14 @@ |
FilePath GetSystemPath() const; |
private: |
- scoped_refptr<FileSystem> file_system_; |
+ scoped_refptr<PPB_FileSystem_Impl> file_system_; |
std::string virtual_path_; // UTF-8 encoded |
FilePath system_path_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); |
}; |
-} // namespace pepper |
+} // namespace ppapi |
+} // namespace webkit |
-#endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_REF_H_ |
+#endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |