Chromium Code Reviews| Index: content/renderer/pepper/pepper_file_system_host.h |
| diff --git a/content/renderer/pepper/pepper_file_system_host.h b/content/renderer/pepper/pepper_file_system_host.h |
| index 92f69a635075d063420ae559863b4b9a31ef9abf..721ee2c1c7d9831ad7f06d5e67c14783c917fa24 100644 |
| --- a/content/renderer/pepper/pepper_file_system_host.h |
| +++ b/content/renderer/pepper/pepper_file_system_host.h |
| @@ -9,6 +9,7 @@ |
| #include "base/memory/weak_ptr.h" |
| #include "googleurl/src/gurl.h" |
| #include "ppapi/c/pp_file_info.h" |
| +#include "ppapi/host/file_system_registry.h" |
| #include "ppapi/host/host_message_context.h" |
| #include "ppapi/host/resource_host.h" |
| @@ -18,6 +19,7 @@ class RendererPpapiHost; |
| class PepperFileSystemHost : |
| public ppapi::host::ResourceHost, |
| + public ppapi::host::FileSystemRegistry::FileSystemPeeker, |
| public base::SupportsWeakPtr<PepperFileSystemHost> { |
| public: |
| PepperFileSystemHost(RendererPpapiHost* host, |
| @@ -31,10 +33,10 @@ class PepperFileSystemHost : |
| const IPC::Message& msg, |
| ppapi::host::HostMessageContext* context) OVERRIDE; |
| - // Supports FileRefs direct access on the host side. |
| - PP_FileSystemType GetType() const { return type_; } |
| - bool IsOpened() const { return opened_; } |
| - GURL GetRootUrl() const { return root_url_; } |
| + // PepperFileSystemRegistry::FileSystemPeeker override. |
| + virtual PP_FileSystemType GetType() const OVERRIDE; |
| + virtual bool IsOpened() const OVERRIDE; |
| + virtual const GURL& GetRootUrl() const OVERRIDE; |
| // It's public only to allow PlatformCallbackAdaptor to access. |
| void OpenFileSystemReply(int32_t pp_error, |
| @@ -43,6 +45,9 @@ class PepperFileSystemHost : |
| private: |
| int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, |
| int64_t expected_size); |
| + int32_t OnHostMsgInitIsolatedFileSystem( |
| + ppapi::host::HostMessageContext* context, |
| + const std::string& root_url); |
|
yzshen1
2013/05/02 23:22:01
fsid please.
victorhsieh
2013/05/03 17:26:58
Done.
|
| RendererPpapiHost* renderer_ppapi_host_; |
| ppapi::host::ReplyMessageContext reply_context_; |