summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-07 00:15:34 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-07 00:15:34 +0000
commit1158ce6d2a309411e37ad2236c07d529cc299b1d (patch)
tree1aceacaac3320a559fcb5c5d9fd42828401d2a89 /ppapi/api
parent8463895c98b69b40dc37bc0fdec2228cba88ab3f (diff)
downloadchromium_src-1158ce6d2a309411e37ad2236c07d529cc299b1d.zip
chromium_src-1158ce6d2a309411e37ad2236c07d529cc299b1d.tar.gz
chromium_src-1158ce6d2a309411e37ad2236c07d529cc299b1d.tar.bz2
Pepper: Fix caching for translated nexes.
A refactor of FileDownloader (r284961) broke the caching behavior for nexes that were translated from pexes; the cache would always end up with entries of length 0, breaking future loads of the pexe. This is the translated nexe was written to the wrong file handle, preventing caching of the result. This change causes the translated nexe to be written to the correct file handle, fixing the caching behavior. I manually tested this change on the "game of life" demo at https://gonativeclient.appspot.com/demo/life, verifying that a cached translated nexe for the pexe was successfully loaded. BUG=401121 Review URL: https://codereview.chromium.org/447013002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/private/ppp_pexe_stream_handler.idl3
1 files changed, 2 insertions, 1 deletions
diff --git a/ppapi/api/private/ppp_pexe_stream_handler.idl b/ppapi/api/private/ppp_pexe_stream_handler.idl
index c2c8bf1..b199b18 100644
--- a/ppapi/api/private/ppp_pexe_stream_handler.idl
+++ b/ppapi/api/private/ppp_pexe_stream_handler.idl
@@ -26,7 +26,8 @@ interface PPP_PexeStreamHandler {
* Provides the expected length of the pexe, as read from HTTP headers.
*/
void DidCacheMiss([inout] mem_t user_data,
- [in] int64_t expected_total_length);
+ [in] int64_t expected_total_length,
+ [in] PP_FileHandle temp_nexe_file);
/**
* Invoked when a block of data has been downloaded.