diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 23:26:57 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 23:26:57 +0000 |
commit | 97e521cba140ce053f33dd3e852e847c76781689 (patch) | |
tree | 4ec754e5643e0283be4eea86e2be1a1d21ceacb4 /ppapi/c/private | |
parent | 08ae727a958a96ff482ff524545c5c9e0048ae91 (diff) | |
download | chromium_src-97e521cba140ce053f33dd3e852e847c76781689.zip chromium_src-97e521cba140ce053f33dd3e852e847c76781689.tar.gz chromium_src-97e521cba140ce053f33dd3e852e847c76781689.tar.bz2 |
Pre-buffer data from the host to the plugin in the PPAPI proxy to reduce the
impact of IPC latency on streaming data. This allows most resource requests
to be returned synchronously from the URLLoader in the plugin.
TEST=manual
BUG=none
Review URL: http://codereview.chromium.org/6870018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/private')
-rw-r--r-- | ppapi/c/private/ppb_proxy_private.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ppapi/c/private/ppb_proxy_private.h b/ppapi/c/private/ppb_proxy_private.h index ae6a39e..e1e133e 100644 --- a/ppapi/c/private/ppb_proxy_private.h +++ b/ppapi/c/private/ppb_proxy_private.h @@ -10,7 +10,7 @@ #include "ppapi/c/pp_module.h" #include "ppapi/c/pp_resource.h" -#define PPB_PROXY_PRIVATE_INTERFACE "PPB_Proxy_Private;3" +#define PPB_PROXY_PRIVATE_INTERFACE "PPB_Proxy_Private;4" // Exposes functions needed by the out-of-process proxy to call into the // renderer PPAPI implementation. @@ -33,6 +33,11 @@ struct PPB_Proxy_Private { void (*SetReserveInstanceIDCallback)( PP_Module module, PP_Bool (*is_seen)(PP_Module, PP_Instance)); + + // Returns the number of bytes synchronously readable out of the URLLoader's + // buffer. Returns 0 on failure or if the url loader doesn't have any data + // now. + int32_t (*GetURLLoaderBufferedBytes)(PP_Resource url_loader); }; #endif // PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |