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

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h

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: revert buildbot hack 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_coordinator.h
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
index b5fb3d0627d036a328245b143a7cb594d1ab2a25..3b3b8284607b390d7c1a97f7de87f289005a4677 100644
--- a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
@@ -38,6 +38,7 @@ class Manifest;
class Plugin;
class PnaclCoordinator;
class PnaclTranslateThread;
+class TempFile;
// A class invoked by Plugin to handle PNaCl client-side translation.
// Usage:
@@ -153,13 +154,7 @@ class PnaclCoordinator: public CallbackSource<FileStreamData> {
// Invoked when the pexe download finishes (using streaming translation)
void BitcodeStreamDidFinish(int32_t pp_error);
// Invoked when the write descriptor for obj_file_ is created.
- void ObjectWriteDidOpen(int32_t pp_error);
- // Invoked when the read descriptor for obj_file_ is created.
- void ObjectReadDidOpen(int32_t pp_error);
- // Invoked when the descriptors for obj_file_ have been closed.
- void ObjectFileWasClosed(int32_t pp_error);
- // Invoked when the obj_file_ temporary has been deleted.
- void ObjectFileWasDeleted(int32_t pp_error);
+ void ObjectFileDidOpen(int32_t pp_error);
// Invoked when the descriptors for nexe_file_ have been closed.
void NexeFileWasClosed(int32_t pp_error);
// Invoked when the nexe_file_ temporary has been renamed to the nexe name.
@@ -213,7 +208,7 @@ class PnaclCoordinator: public CallbackSource<FileStreamData> {
// Optional cache identity for translation caching.
nacl::string cache_identity_;
// Object file, produced by the translator and consumed by the linker.
- nacl::scoped_ptr<LocalTempFile> obj_file_;
+ nacl::scoped_ptr<TempFile> obj_file_;
// Translated nexe file, produced by the linker and consumed by sel_ldr.
nacl::scoped_ptr<LocalTempFile> nexe_file_;
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/plugin.gypi ('k') | ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698