diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 22:49:02 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 22:49:02 +0000 |
commit | 66c8f3c44ef87cf0038989853696c23d28aa7b29 (patch) | |
tree | b05aac3693ad342f76cf0ccc9d1f9e87d77fc75d /content/renderer/pepper/pepper_in_process_resource_creation.cc | |
parent | e87fd3fb5c3dbe5d93ddd7dcf7bbced9f853ce30 (diff) | |
download | chromium_src-66c8f3c44ef87cf0038989853696c23d28aa7b29.zip chromium_src-66c8f3c44ef87cf0038989853696c23d28aa7b29.tar.gz chromium_src-66c8f3c44ef87cf0038989853696c23d28aa7b29.tar.bz2 |
Pepper: Move FileRef to the "new" resource proxy.
This change moves the FileRef implementation from the previous one in the "old"
resource model (ppb_file_ref_impl.cc) to the "new" resource model
(pepper_file_ref_host.cc), and from the renderer to the browser.
As many as possible of the supporting changes were split off to other changes
to minimize the size of this change. Unfortunately, a lot of changes for
URLLoader had to be rolled into this change.
The data structures for CreateInfo have changed, and all users of FileRef have
to be moved over, which is what causes this change to be so large.
TBR=dmichael@chromium.org, jschuh@chromium.org, yzshen@chromium.org
BUG=225441
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216744
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218305
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219911
Review URL: https://codereview.chromium.org/21966004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/pepper/pepper_in_process_resource_creation.cc')
-rw-r--r-- | content/renderer/pepper/pepper_in_process_resource_creation.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/renderer/pepper/pepper_in_process_resource_creation.cc b/content/renderer/pepper/pepper_in_process_resource_creation.cc index 9743bca5..cb10ff2 100644 --- a/content/renderer/pepper/pepper_in_process_resource_creation.cc +++ b/content/renderer/pepper/pepper_in_process_resource_creation.cc @@ -19,6 +19,7 @@ #include "ppapi/proxy/ext_crx_file_system_private_resource.h" #include "ppapi/proxy/file_chooser_resource.h" #include "ppapi/proxy/file_io_resource.h" +#include "ppapi/proxy/file_ref_resource.h" #include "ppapi/proxy/file_system_resource.h" #include "ppapi/proxy/graphics_2d_resource.h" #include "ppapi/proxy/ppapi_messages.h" @@ -85,6 +86,15 @@ PP_Resource PepperInProcessResourceCreation::CreateFileIO( instance))->GetReference(); } +PP_Resource PepperInProcessResourceCreation::CreateFileRef( + PP_Instance instance, + const ppapi::FileRefCreateInfo& create_info) { + return ppapi::proxy::FileRefResource::CreateFileRef( + host_impl_->in_process_router()->GetPluginConnection(instance), + instance, + create_info); +} + PP_Resource PepperInProcessResourceCreation::CreateFileSystem( PP_Instance instance, PP_FileSystemType type) { |