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

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc b/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc
index f8c79fafcc7f7cb3dd3413a42b6c627e9c73047f..214755642c5281923366f5904ff1d5ba1796cbf4 100644
--- a/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc
@@ -8,6 +8,7 @@
#include "native_client/src/trusted/plugin/plugin.h"
#include "native_client/src/trusted/plugin/pnacl_resources.h"
#include "native_client/src/trusted/plugin/srpc_params.h"
+#include "native_client/src/trusted/plugin/temporary_file.h"
namespace plugin {
@@ -22,7 +23,7 @@ void PnaclStreamingTranslateThread::RunTranslate(
const pp::CompletionCallback& finish_callback,
const Manifest* manifest,
const Manifest* ld_manifest,
- LocalTempFile* obj_file,
+ TempFile* obj_file,
LocalTempFile* nexe_file,
ErrorInfo* error_info,
PnaclResources* resources,
@@ -90,11 +91,11 @@ void PnaclStreamingTranslateThread::DoTranslate() {
}
// Run LLC.
SrpcParams params;
- nacl::DescWrapper* llc_out_file = obj_file_->write_wrapper();
- PluginReverseInterface* llc_reverse =
- llc_subprocess->service_runtime()->rev_interface();
- llc_reverse->AddQuotaManagedFile(obj_file_->identifier(),
- obj_file_->write_file_io());
+ nacl::DescWrapper* llc_out_file = obj_file_->get_wrapper();
+ // Temporarily disable quota.
+ PluginReverseInterface* llc_reverse =
brettw 2012/07/27 22:38:17 Check indenting.
jvoung - send to chromium... 2012/07/28 01:30:05 Done.
+ llc_subprocess->service_runtime()->rev_interface();
+ llc_reverse->AddTempQuotaManagedFile(obj_file_->identifier());
if (!llc_subprocess->InvokeSrpcMethod("StreamInit",
"h",

Powered by Google App Engine
This is Rietveld 408576698