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

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

Issue 18063005: Do PPB_FileIO Query and Read in the plugin process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prevent writes on plugin side. Created 7 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: 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 62e43560595f7d5e54d0748b0122d64a2f3e95ea..d06ff5b03f889650c96f0f6dc5b31870521c70b9 100644
--- a/content/renderer/pepper/pepper_file_io_host.h
+++ b/content/renderer/pepper/pepper_file_io_host.h
@@ -45,13 +45,9 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
PP_Resource file_ref_resource,
int32_t open_flags);
- int32_t OnHostMsgQuery(ppapi::host::HostMessageContext* context);
int32_t OnHostMsgTouch(ppapi::host::HostMessageContext* context,
PP_Time last_access_time,
PP_Time last_modified_time);
- int32_t OnHostMsgRead(ppapi::host::HostMessageContext* context,
- int64_t offset,
- int32_t bytes_to_read);
int32_t OnHostMsgWrite(ppapi::host::HostMessageContext* context,
int64_t offset,
const std::string& buffer);
@@ -86,16 +82,12 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
base::PassPlatformFile file,
quota::QuotaLimitType quota_policy,
const PluginDelegate::NotifyCloseFileCallback& callback);
- void ExecutePlatformQueryCallback(ReplyMessageContext reply_context,
- base::PlatformFileError error_code,
- const base::PlatformFileInfo& file_info);
- void ExecutePlatformReadCallback(ReplyMessageContext reply_context,
- base::PlatformFileError error_code,
- const char* data, int bytes_read);
void ExecutePlatformWriteCallback(ReplyMessageContext reply_context,
base::PlatformFileError error_code,
int bytes_written);
+ RendererPpapiHost* renderer_ppapi_host_;
+
// TODO(victorhsieh): eliminate plugin_delegate_ as it's no longer needed.
webkit::ppapi::PluginDelegate* plugin_delegate_; // Not owned.
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_file_io_host.cc » ('j') | content/renderer/pepper/pepper_file_io_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698