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

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

Issue 413493002: Pepper: Simplify TempFile in trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: ppapi/native_client/src/trusted/plugin/temporary_file.h
diff --git a/ppapi/native_client/src/trusted/plugin/temporary_file.h b/ppapi/native_client/src/trusted/plugin/temporary_file.h
index 4bc8f7140e389054d1d6e7d84408c0a5e342acbb..e492668bb5b9ee8d0d95e85b58a6338f4578c45b 100644
--- a/ppapi/native_client/src/trusted/plugin/temporary_file.h
+++ b/ppapi/native_client/src/trusted/plugin/temporary_file.h
@@ -35,8 +35,7 @@ class Plugin;
// of the file between sessions.
class TempFile {
public:
- // Create a TempFile.
- explicit TempFile(Plugin* plugin);
+ TempFile(Plugin* plugin, PP_FileHandle handle);
~TempFile();
// Opens a temporary file object and descriptor wrapper referring to the file.
@@ -55,9 +54,6 @@ class TempFile {
// 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);
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc ('k') | ppapi/native_client/src/trusted/plugin/temporary_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698