diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-05 17:11:11 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-05 17:11:11 +0000 |
commit | f3cd7ed06b2f519c2cfedba22d0becb90cba1f81 (patch) | |
tree | 6703d7772a378b120f0e87e6732e8b9b482d62f6 /ppapi | |
parent | 03385581888c87d940e2b66a4d0ee56f173f65e3 (diff) | |
download | chromium_src-f3cd7ed06b2f519c2cfedba22d0becb90cba1f81.zip chromium_src-f3cd7ed06b2f519c2cfedba22d0becb90cba1f81.tar.gz chromium_src-f3cd7ed06b2f519c2cfedba22d0becb90cba1f81.tar.bz2 |
Revert 232547 "Pepper: Move FileIO host from renderer to browser."
This change is being reverted due to some problems seen in integration testing.
See http://crbug.com/314884 for test failure details.
> Pepper: Move FileIO host from renderer to browser.
>
> This change is large because it moves QuotaFileIO and PepperFileIOHost all at
> once to the browser process. Some code in the refactored PepperFileIOHost is
> moved from what's provided in FileAPIMessageFilter.
>
> Tested locally with Bastion, From Dust, and Angry Bots.
>
> TBR=jschuh
> BUG=246396
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232440
>
> Review URL: https://codereview.chromium.org/33053002
TBR=teravest@chromium.org
BUG=246396,314884
Review URL: https://codereview.chromium.org/60323002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/proxy/file_io_resource.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ppapi/proxy/file_io_resource.cc b/ppapi/proxy/file_io_resource.cc index 09432f8..347d4ef 100644 --- a/ppapi/proxy/file_io_resource.cc +++ b/ppapi/proxy/file_io_resource.cc @@ -78,7 +78,7 @@ int32_t FileIOResource::ReadOp::DoWork() { 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 @@ int32_t FileIOResource::Open(PP_Resource file_ref, // 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 @@ int32_t FileIOResource::Touch(PP_Time last_access_time, 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 @@ int32_t FileIOResource::Write(int64_t offset, // 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 @@ int32_t FileIOResource::SetLength(int64_t length, 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 @@ int32_t FileIOResource::Flush(scoped_refptr<TrackedCallback> callback) { 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 @@ void FileIOResource::Close() { if (file_handle_) { file_handle_ = NULL; } - Post(BROWSER, PpapiHostMsg_FileIO_Close()); + Post(RENDERER, PpapiHostMsg_FileIO_Close()); } int32_t FileIOResource::RequestOSFileHandle( @@ -288,7 +288,7 @@ int32_t FileIOResource::RequestOSFileHandle( 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)); |