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

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: Add a note explaining buffer transfer for DoRead. 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
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_file_io_host.cc » ('j') | ppapi/proxy/file_io_resource.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88596feaa82765b795fd702efdd49b8afeb28670..c8ecd385e8eeca15a0881e8a52e92340ced708c6 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);
@@ -96,6 +92,8 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
base::PlatformFileError error_code,
int bytes_written);
+ RendererPpapiHost* renderer_ppapi_host_;
+
base::PlatformFile file_;
// The file system type specified in the Open() call. This will be
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_file_io_host.cc » ('j') | ppapi/proxy/file_io_resource.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698