summaryrefslogtreecommitdiffstats
path: root/ppapi/host
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 01:10:21 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 01:10:21 +0000
commitd1967ede439ec7078272a1a9afbe725ecb323ce8 (patch)
tree22873396cf28e1031499ccaae91258a7b1263cd4 /ppapi/host
parentde645d7c21c3d696186d82cbb202563f35016700 (diff)
downloadchromium_src-d1967ede439ec7078272a1a9afbe725ecb323ce8.zip
chromium_src-d1967ede439ec7078272a1a9afbe725ecb323ce8.tar.gz
chromium_src-d1967ede439ec7078272a1a9afbe725ecb323ce8.tar.bz2
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
Diffstat (limited to 'ppapi/host')
-rw-r--r--ppapi/host/resource_host.cc9
-rw-r--r--ppapi/host/resource_host.h4
2 files changed, 13 insertions, 0 deletions
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();