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

Unified Diff: trunk/src/ppapi/proxy/file_io_resource.cc

Issue 60323002: Revert 232547 "Pepper: Move FileIO host from renderer to browser." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/ppapi/proxy/file_io_resource.cc
===================================================================
--- trunk/src/ppapi/proxy/file_io_resource.cc (revision 233010)
+++ trunk/src/ppapi/proxy/file_io_resource.cc (working copy)
@@ -78,7 +78,7 @@
FileIOResource::FileIOResource(Connection connection, PP_Instance instance)
: PluginResource(connection, instance),
file_system_type_(PP_FILESYSTEMTYPE_INVALID) {
- SendCreate(BROWSER, PpapiHostMsg_FileIO_Create());
+ SendCreate(RENDERER, PpapiHostMsg_FileIO_Create());
}
FileIOResource::~FileIOResource() {
@@ -115,7 +115,7 @@
// don't want the plugin destroying it during the Open operation.
file_ref_ = enter.resource();
- Call<PpapiPluginMsg_FileIO_OpenReply>(BROWSER,
+ Call<PpapiPluginMsg_FileIO_OpenReply>(RENDERER,
PpapiHostMsg_FileIO_Open(
file_ref,
open_flags),
@@ -184,7 +184,7 @@
if (rv != PP_OK)
return rv;
- Call<PpapiPluginMsg_FileIO_GeneralReply>(BROWSER,
+ Call<PpapiPluginMsg_FileIO_GeneralReply>(RENDERER,
PpapiHostMsg_FileIO_Touch(last_access_time, last_modified_time),
base::Bind(&FileIOResource::OnPluginMsgGeneralComplete, this,
callback));
@@ -233,7 +233,7 @@
// TODO(brettw) it would be nice to use a shared memory buffer for large
// writes rather than having to copy to a string (which will involve a number
// of extra copies to serialize over IPC).
- Call<PpapiPluginMsg_FileIO_GeneralReply>(BROWSER,
+ Call<PpapiPluginMsg_FileIO_GeneralReply>(RENDERER,
PpapiHostMsg_FileIO_Write(offset, std::string(buffer, bytes_to_write)),
base::Bind(&FileIOResource::OnPluginMsgGeneralComplete, this,
callback));
@@ -249,7 +249,7 @@
if (rv != PP_OK)
return rv;
- Call<PpapiPluginMsg_FileIO_GeneralReply>(BROWSER,
+ Call<PpapiPluginMsg_FileIO_GeneralReply>(RENDERER,
PpapiHostMsg_FileIO_SetLength(length),
base::Bind(&FileIOResource::OnPluginMsgGeneralComplete, this,
callback));
@@ -264,7 +264,7 @@
if (rv != PP_OK)
return rv;
- Call<PpapiPluginMsg_FileIO_GeneralReply>(BROWSER,
+ Call<PpapiPluginMsg_FileIO_GeneralReply>(RENDERER,
PpapiHostMsg_FileIO_Flush(),
base::Bind(&FileIOResource::OnPluginMsgGeneralComplete, this,
callback));
@@ -277,7 +277,7 @@
if (file_handle_) {
file_handle_ = NULL;
}
- Post(BROWSER, PpapiHostMsg_FileIO_Close());
+ Post(RENDERER, PpapiHostMsg_FileIO_Close());
}
int32_t FileIOResource::RequestOSFileHandle(
@@ -288,7 +288,7 @@
if (rv != PP_OK)
return rv;
- Call<PpapiPluginMsg_FileIO_RequestOSFileHandleReply>(BROWSER,
+ Call<PpapiPluginMsg_FileIO_RequestOSFileHandleReply>(RENDERER,
PpapiHostMsg_FileIO_RequestOSFileHandle(),
base::Bind(&FileIOResource::OnPluginMsgRequestOSFileHandleComplete, this,
callback, handle));
« no previous file with comments | « trunk/src/content/renderer/pepper/quota_file_io_unittest.cc ('k') | trunk/src/webkit/browser/fileapi/file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698