summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-08 18:35:39 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-08 18:35:39 +0000
commit54a1beba9047b4007ead4a45a30b1dedcc536ce5 (patch)
tree625da15cc609002607af9cca6d10a86fd31e3acf /ppapi
parent8a2e54dc3206e9ede4883a39d9dd936b1c596a17 (diff)
downloadchromium_src-54a1beba9047b4007ead4a45a30b1dedcc536ce5.zip
chromium_src-54a1beba9047b4007ead4a45a30b1dedcc536ce5.tar.gz
chromium_src-54a1beba9047b4007ead4a45a30b1dedcc536ce5.tar.bz2
Pepper: Add FileRef messages for path information
Both FileIO and URLRequestInfo need to get path information for a FileRef resource (while in the renderer). This will introduce an extra round-trip to the browser in both paths. It's possible that we'll do something more clever for FileIO (to go back to only one round trip), but I think we will need this for URLRequestInfo regardless. BUG=225441 Review URL: https://chromiumcodereview.appspot.com/16975012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/proxy/ppapi_messages.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
index 83176bc..62f15de 100644
--- a/ppapi/proxy/ppapi_messages.h
+++ b/ppapi/proxy/ppapi_messages.h
@@ -1318,6 +1318,7 @@ IPC_MESSAGE_CONTROL4(
// in the request and the ID of the pending ResourceHost which was created in
// the browser. This ID is only useful for the plugin which can attach to the
// ResourceHost in the browser.
+// TODO(teravest): Change this message to be ROUTED.
IPC_MESSAGE_CONTROL2(
PpapiHostMsg_CreateResourceHostFromHostReply,
int32_t /* sequence */,
@@ -1813,6 +1814,28 @@ IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_GetFontFamilies)
IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply,
std::string /* families */)
+// FileRef.
+// Requests that the browser reply with file system and path information about
+// the resource indicated in |params| which exists in the given
+// |child_process_id|. |routing_id| is sent so that the reply can be routed
+// properly in the renderer.
+// Only sent from the renderer to the browser.
+IPC_MESSAGE_CONTROL3(PpapiHostMsg_FileRef_GetInfoForRenderer,
+ int /* routing_id */,
+ int /* child_process_id */,
+ ppapi::proxy::ResourceMessageCallParams /* params */)
+
+// Reply to PpapiHostMsg_FileRefRenderer_GetInfo with a sequence number for
+// invoking the right callback, |fs_type| which indicates the file system, and
+// path information in either |file_system_url_spec| (for internal file systems)
+// or |external_path| (for external file systems).
+// Only sent from the browser to the renderer.
+IPC_MESSAGE_ROUTED4(PpapiHostMsg_FileRef_GetInfoForRendererReply,
+ int32_t /* sequence */,
+ PP_FileSystemType /* fs_type */,
+ std::string /* file_system_url_spec */,
+ base::FilePath /* external_path */)
+
// Flash -----------------------------------------------------------------------
IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)