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

Unified Diff: trunk/src/ppapi/native_client/src/trusted/plugin/temporary_file.h

Issue 406383002: Revert 284766 "Pepper: Simplify TempFile in trusted plugin." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/ppapi/native_client/src/trusted/plugin/temporary_file.h
===================================================================
--- trunk/src/ppapi/native_client/src/trusted/plugin/temporary_file.h (revision 284789)
+++ trunk/src/ppapi/native_client/src/trusted/plugin/temporary_file.h (working copy)
@@ -35,7 +35,8 @@
// of the file between sessions.
class TempFile {
public:
- TempFile(Plugin* plugin, PP_FileHandle handle);
+ // Create a TempFile.
+ explicit TempFile(Plugin* plugin);
~TempFile();
// Opens a temporary file object and descriptor wrapper referring to the file.
@@ -54,6 +55,9 @@
// and all wrappers.
PP_FileHandle TakeFileHandle();
+ // Used by GetNexeFd() to set the underlying internal handle.
+ PP_FileHandle* internal_handle() { return &internal_handle_; }
+
private:
NACL_DISALLOW_COPY_AND_ASSIGN(TempFile);

Powered by Google App Engine
This is Rietveld 408576698