Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1089)

Issue 10826107: Add an IPC for PNaCl to check if the session is incognito, before deciding (Closed)

Created:
8 years, 4 months ago by jvoung (off chromium)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, piman+watch_chromium.org, ihf+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149749

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : bump buffer size #

Total comments: 6

Patch Set 4 : bump buffer more #

Total comments: 4

Patch Set 5 : use renderer bit and fix error path. #

Patch Set 6 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -124 lines) Patch
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 3 4 4 chunks +8 lines, -1 line 0 comments Download
M ppapi/api/private/finish_writing_these/ppb_nacl_private.idl View 2 chunks +10 lines, -6 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/local_temp_file.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 5 chunks +45 lines, -30 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 4 5 12 chunks +166 lines, -69 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h View 1 3 chunks +2 lines, -3 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/temporary_file.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/temporary_file.cc View 1 2 3 4 5 1 chunk +19 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jvoung (off chromium)
http://codereview.chromium.org/10826107/diff/2001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h File ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h (right): http://codereview.chromium.org/10826107/diff/2001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h#newcode45 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h:45: TempFile* nexe_file, Or we can allow RunTranslate to take ...
8 years, 4 months ago (2012-08-01 23:14:46 UTC) #1
Derek Schuff
LGTM on the coordinator stuff On 2012/08/01 23:14:46, jvoung (chromium) wrote: > http://codereview.chromium.org/10826107/diff/2001/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h > File ...
8 years, 4 months ago (2012-08-02 16:33:28 UTC) #2
jvoung - send to chromium...
+brettw, if you could take a look at the ppb_nacl interface stuff again -- thanks!
8 years, 4 months ago (2012-08-02 16:55:47 UTC) #3
brettw
It looks like the incognito bit is available in-process in the ChromeRenderProcessObserver (in chrome/renderer). And ...
8 years, 4 months ago (2012-08-02 19:50:47 UTC) #4
jvoung (off chromium)
Yup the renderer bit works -- simplified. Thanks! Also had to fix an error path ...
8 years, 4 months ago (2012-08-02 22:26:07 UTC) #5
sehr (please use chromium)
Some nits. https://chromiumcodereview.appspot.com/10826107/diff/4001/chrome/common/render_messages.h File chrome/common/render_messages.h (right): https://chromiumcodereview.appspot.com/10826107/diff/4001/chrome/common/render_messages.h#newcode593 chrome/common/render_messages.h:593: // Send by the renderer to check ...
8 years, 4 months ago (2012-08-02 22:37:48 UTC) #6
jvoung - send to chromium...
https://chromiumcodereview.appspot.com/10826107/diff/4001/chrome/common/render_messages.h File chrome/common/render_messages.h (right): https://chromiumcodereview.appspot.com/10826107/diff/4001/chrome/common/render_messages.h#newcode593 chrome/common/render_messages.h:593: // Send by the renderer to check if the ...
8 years, 4 months ago (2012-08-02 22:44:29 UTC) #7
brettw
8 years, 4 months ago (2012-08-02 23:52:18 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698