diff options
author | jvoung@google.com <jvoung@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-02 23:56:56 +0000 |
---|---|---|
committer | jvoung@google.com <jvoung@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-02 23:56:56 +0000 |
commit | 4e8fdb7f62b86d2a64847c7a2a77d7773e0d08f7 (patch) | |
tree | 09a9325041f133ecb7051dad87f3f9e9ed3af944 /ppapi/c | |
parent | 15185b78597d4876578ff7384970b62954ed9103 (diff) | |
download | chromium_src-4e8fdb7f62b86d2a64847c7a2a77d7773e0d08f7.zip chromium_src-4e8fdb7f62b86d2a64847c7a2a77d7773e0d08f7.tar.gz chromium_src-4e8fdb7f62b86d2a64847c7a2a77d7773e0d08f7.tar.bz2 |
Add an IPC for PNaCl to check if the session is incognito,
before deciding to cache a translated nexe (current cache
mechanism won't work in incognito). Use this to decide
whether or not to cache translations for now.
For now, the linker always writes to a self-deleting temp
file, instead of to the cache directly. We then copy the
data from the temp file to the cache as a separate step.
Took about 60ms to copy a 4.6MB nexe in debug mode with a
128kb buffer and 15ms with a 1mb buffer...
BUG= http://code.google.com/p/nativeclient/issues/detail?id=2683
TEST= try compiling an app that doesn't use the File system
in incognito mode -- we should add a test though...
we should add a test though
Review URL: https://chromiumcodereview.appspot.com/10826107
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/private/ppb_nacl_private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ppapi/c/private/ppb_nacl_private.h b/ppapi/c/private/ppb_nacl_private.h index 8f58f2d..3bdd4ca 100644 --- a/ppapi/c/private/ppb_nacl_private.h +++ b/ppapi/c/private/ppb_nacl_private.h @@ -11,7 +11,7 @@ #include "ppapi/c/pp_stdint.h" #include "ppapi/c/private/pp_file_handle.h" -#define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.7" +#define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.8" struct PPB_NaCl_Private { // This function launches NaCl's sel_ldr process. On success, the function @@ -66,6 +66,9 @@ struct PPB_NaCl_Private { // the last handle is closed (or earlier on POSIX systems), and // returns a posix handle to that temporary file. PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); + + // Return true if we are off the record. + PP_Bool (*IsOffTheRecord)(); }; #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |