| 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_
|
| -
|
|
|