summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-22 21:03:21 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-22 21:03:21 +0000
commit7d634398aa32888ce450b9fc82ec2b312e5b2d24 (patch)
treec7b3ef886d04bd1cd5848f8787512a3e5e04c467 /ppapi/proxy
parent597fe2f727043b233847d3ecf87deb13ae59714d (diff)
downloadchromium_src-7d634398aa32888ce450b9fc82ec2b312e5b2d24.zip
chromium_src-7d634398aa32888ce450b9fc82ec2b312e5b2d24.tar.gz
chromium_src-7d634398aa32888ce450b9fc82ec2b312e5b2d24.tar.bz2
Pepper: FileRef_CreateExternal from renderer.
This change defines FileRef_CreateExternal and allows FileRefs for paths on external file systems to be created by the renderer (but not the plugin). We can't use the permissions checking in PpapiHost because there's only one instance of those per plugin process (and the incoming renderer message would only see the plugin's permissions). BUG=225441 Review URL: https://chromiumcodereview.appspot.com/19356006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r--ppapi/proxy/ppapi_messages.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
index b8e7456..051655a4 100644
--- a/ppapi/proxy/ppapi_messages.h
+++ b/ppapi/proxy/ppapi_messages.h
@@ -1405,6 +1405,13 @@ IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
// FileRef
+// Creates a FileRef to a path on an external file system. This message may
+// only be sent from the renderer.
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateExternal,
+ base::FilePath /* external_path */)
+
+// Creates a FileRef to a path on an internal file system. This message may
+// be sent from the renderer or the plugin.
IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateInternal,
PP_Resource /* file_system */,
std::string /* internal_path */)