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); |