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

Unified Diff: content/renderer/pepper/pepper_file_system_host.h

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months 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
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,
yzshen1 2013/05/02 23:22:01 no need to have this peeker interface.
victorhsieh 2013/05/03 17:26:58 Done.
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);
RendererPpapiHost* renderer_ppapi_host_;
ppapi::host::ReplyMessageContext reply_context_;

Powered by Google App Engine
This is Rietveld 408576698