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

Unified Diff: content/renderer/pepper/pepper_file_io_host.h

Issue 13032002: Add RequestOSFileHandle as a private PPAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: addressed comments Created 7 years, 9 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: content/renderer/pepper/pepper_file_io_host.h
diff --git a/content/renderer/pepper/pepper_file_io_host.h b/content/renderer/pepper/pepper_file_io_host.h
index b66cb6f7f4f316508a8a1ea7bb758594085c606b..4ebf81bc1578a2131c8149fc613cf3a40ef62e22 100644
--- a/content/renderer/pepper/pepper_file_io_host.h
+++ b/content/renderer/pepper/pepper_file_io_host.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
#define CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
+#include <set>
#include <string>
#include "base/basictypes.h"
@@ -94,6 +95,8 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
base::PlatformFileError error_code,
int bytes_written);
+ bool IsGetOSFileDescriptorAllowed() const;
+
// TODO(victorhsieh): eliminate plugin_delegate_ as it's no longer needed.
webkit::ppapi::PluginDelegate* plugin_delegate_; // Not owned.
@@ -120,10 +123,12 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
ppapi::FileIOStateManager state_manager_;
+ // The whitelist for GetOSFileHandle specified by commandline.
+ std::set<std::string> allowed_hosts_;
+
DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost);
};
} // namespace content
#endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
-

Powered by Google App Engine
This is Rietveld 408576698