summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_file_system_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_file_system_impl.h')
-rw-r--r--webkit/plugins/ppapi/ppb_file_system_impl.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/webkit/plugins/ppapi/ppb_file_system_impl.h b/webkit/plugins/ppapi/ppb_file_system_impl.h
index 66b5ff2..0f41561 100644
--- a/webkit/plugins/ppapi/ppb_file_system_impl.h
+++ b/webkit/plugins/ppapi/ppb_file_system_impl.h
@@ -9,29 +9,24 @@
#include "base/compiler_specific.h"
#include "googleurl/src/gurl.h"
#include "ppapi/c/pp_file_info.h"
+#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_file_system_api.h"
-#include "webkit/plugins/ppapi/resource.h"
struct PPB_FileSystem;
namespace webkit {
namespace ppapi {
-class PluginInstance;
-
-class PPB_FileSystem_Impl : public Resource,
+class PPB_FileSystem_Impl : public ::ppapi::Resource,
public ::ppapi::thunk::PPB_FileSystem_API {
public:
- PPB_FileSystem_Impl(PluginInstance* instance, PP_FileSystemType type);
virtual ~PPB_FileSystem_Impl();
- static PP_Resource Create(PluginInstance* instance,
- PP_FileSystemType type);
+ static PP_Resource Create(PP_Instance instance, PP_FileSystemType type);
// Resource overrides.
virtual ::ppapi::thunk::PPB_FileSystem_API* AsPPB_FileSystem_API() OVERRIDE;
- PluginInstance* instance() { return instance_; }
PP_FileSystemType type() const { return type_; }
const GURL& root_url() const { return root_url_; }
void set_root_url(const GURL& root_url) { root_url_ = root_url; }
@@ -44,7 +39,8 @@ class PPB_FileSystem_Impl : public Resource,
virtual PP_FileSystemType GetType() OVERRIDE;
private:
- PluginInstance* instance_;
+ PPB_FileSystem_Impl(PP_Instance instance, PP_FileSystemType type);
+
PP_FileSystemType type_;
GURL root_url_;
bool opened_;