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

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed)

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

Description

Add an interface for nacl to create delete-on-close temp files, to be used by pnacl for scratch files during compilation and linking. This is in-lieu of the current use of pepper temp files, which are not allowed in incognito mode, and are more cumbersome to clean up on surfaway. Use this interface for the .o file in pnacl coordinator. The .nexe still uses pepper temp files, since we haven't moved that over for caching yet. We will clean that up later. Also do some crude quota enforcement for these files, using the existing reverse service interface. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2683 TEST= none -- pnacl compilation still works Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148964

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleanup #

Total comments: 6

Patch Set 3 : cleanup #

Patch Set 4 : revert rebase mistake #

Patch Set 5 : revert buildbot hack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -116 lines) Patch
M chrome/browser/nacl_host/pnacl_file_host.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/pnacl_file_host.cc View 1 2 2 chunks +52 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 5 chunks +25 lines, -21 lines 0 comments Download
M ppapi/api/private/finish_writing_these/ppb_nacl_private.idl View 2 chunks +10 lines, -2 lines 0 comments Download
M ppapi/c/private/pp_file_handle.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 2 chunks +8 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/build.scons View 2 chunks +2 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/local_temp_file.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 3 chunks +3 lines, -8 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 4 chunks +6 lines, -44 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h View 3 chunks +3 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 2 chunks +8 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 2 4 chunks +22 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 6 chunks +63 lines, -22 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/temporary_file.h View 1 chunk +77 lines, -0 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/temporary_file.cc View 1 chunk +85 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jvoung (off chromium)
Hi, Brett could you review the parts not under native_client/. David and Derek, could you ...
8 years, 5 months ago (2012-07-24 22:18:27 UTC) #1
brettw
Is it possible to have IDL for this? We've tried to do IDL for everything ...
8 years, 5 months ago (2012-07-25 23:33:39 UTC) #2
jvoung (off chromium)
On 2012/07/25 23:33:39, brettw wrote: > Is it possible to have IDL for this? We've ...
8 years, 5 months ago (2012-07-25 23:58:57 UTC) #3
brettw
If the flash file stuff is difficult to make IDL, getting IDL for the new ...
8 years, 5 months ago (2012-07-26 17:40:04 UTC) #4
jvoung (off chromium)
On 2012/07/26 17:40:04, brettw wrote: > If the flash file stuff is difficult to make ...
8 years, 5 months ago (2012-07-26 20:46:30 UTC) #5
brettw
I don't have a very good understanding of the nacl plugin code, so I barely ...
8 years, 4 months ago (2012-07-27 22:38:17 UTC) #6
sehr (please use chromium)
Modulo brettw's comments, LGTM.
8 years, 4 months ago (2012-07-27 23:38:27 UTC) #7
jvoung - send to chromium...
8 years, 4 months ago (2012-07-28 01:30:05 UTC) #8
http://codereview.chromium.org/10815080/diff/4002/chrome/browser/nacl_host/pn...
File chrome/browser/nacl_host/pnacl_file_host.cc (right):

http://codereview.chromium.org/10815080/diff/4002/chrome/browser/nacl_host/pn...
chrome/browser/nacl_host/pnacl_file_host.cc:105: if
(!file_util::Delete(file_path, false)) {
On 2012/07/27 22:38:17, brettw wrote:
> Unless I'm mistaken, it looks like this is already done in CreatePlatformFile
> when you specify DELETE_ON_CLOSE.

Oops make sense -- removed.

http://codereview.chromium.org/10815080/diff/4002/chrome/renderer/pepper/ppb_...
File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right):

http://codereview.chromium.org/10815080/diff/4002/chrome/renderer/pepper/ppb_...
chrome/renderer/pepper/ppb_nacl_private_impl.cc:36: 
On 2012/07/27 22:38:17, brettw wrote:
> Got an extra blank in here.

Done.

http://codereview.chromium.org/10815080/diff/4002/ppapi/native_client/src/tru...
File ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc
(right):

http://codereview.chromium.org/10815080/diff/4002/ppapi/native_client/src/tru...
ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc:96:
PluginReverseInterface* llc_reverse =
On 2012/07/27 22:38:17, brettw wrote:
> Check indenting.

Done.

Powered by Google App Engine
This is Rietveld 408576698