From d1967ede439ec7078272a1a9afbe725ecb323ce8 Mon Sep 17 00:00:00 2001 From: "teravest@chromium.org" Date: Tue, 18 Jun 2013 01:10:21 +0000 Subject: Pepper: Add initial browser host for FileRef. This is the first change to introduce browser support for FileRef. It only supports internal filesystems. This also includes the messsages that need to be introduced (and the logic for reading and writing the new FileRef_CreateInfo structure). This change was tested (as part of a larger local change) and passed tests in FileRef. TBR=darin BUG=225441 Review URL: https://chromiumcodereview.appspot.com/16478002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206864 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/host/resource_host.cc | 9 +++++++++ ppapi/host/resource_host.h | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'ppapi/host') diff --git a/ppapi/host/resource_host.cc b/ppapi/host/resource_host.cc index 96d8849..6e08c01 100644 --- a/ppapi/host/resource_host.cc +++ b/ppapi/host/resource_host.cc @@ -48,6 +48,15 @@ void ResourceHost::SendReply(const ReplyMessageContext& context, host_->SendReply(context, msg); } +content::PepperFileRefHost* ResourceHost::AsPepperFileRefHost() { + return NULL; +} + +content::PepperFileSystemBrowserHost* +ResourceHost::AsPepperFileSystemBrowserHost() { + return NULL; +} + content::PepperFileSystemHost* ResourceHost::AsPepperFileSystemHost() { return NULL; } diff --git a/ppapi/host/resource_host.h b/ppapi/host/resource_host.h index 583766e..2c40f62 100644 --- a/ppapi/host/resource_host.h +++ b/ppapi/host/resource_host.h @@ -15,6 +15,8 @@ #include "ppapi/shared_impl/host_resource.h" namespace content { +class PepperFileRefHost; +class PepperFileSystemBrowserHost; class PepperFileSystemHost; class PepperGraphics2DHost; } @@ -60,6 +62,8 @@ class PPAPI_HOST_EXPORT ResourceHost : public ResourceMessageHandler { const IPC::Message& msg) OVERRIDE; // Simple RTTI. Overidden by subclasses that implement the interface. + virtual content::PepperFileRefHost* AsPepperFileRefHost(); + virtual content::PepperFileSystemBrowserHost* AsPepperFileSystemBrowserHost(); virtual content::PepperFileSystemHost* AsPepperFileSystemHost(); virtual content::PepperGraphics2DHost* AsPepperGraphics2DHost(); -- cgit v1.1