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

Unified Diff: content/renderer/pepper/pepper_in_process_resource_creation.cc

Issue 11941022: Refactor FileIO to the new resource host system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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_in_process_resource_creation.cc
===================================================================
--- content/renderer/pepper/pepper_in_process_resource_creation.cc (revision 177698)
+++ content/renderer/pepper/pepper_in_process_resource_creation.cc (working copy)
@@ -15,6 +15,7 @@
#include "ppapi/host/ppapi_host.h"
#include "ppapi/proxy/browser_font_resource_trusted.h"
#include "ppapi/proxy/file_chooser_resource.h"
+#include "ppapi/proxy/file_io_resource.h"
#include "ppapi/proxy/graphics_2d_resource.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/printing_resource.h"
@@ -68,6 +69,13 @@
instance, mode, accept_types))->GetReference();
}
+PP_Resource PepperInProcessResourceCreation::CreateFileIO(
+ PP_Instance instance) {
+ return (new ppapi::proxy::FileIOResource(
+ host_impl_->in_process_router()->GetPluginConnection(),
+ instance))->GetReference();
+}
+
PP_Resource PepperInProcessResourceCreation::CreateGraphics2D(
PP_Instance instance,
const PP_Size& size,
« no previous file with comments | « content/renderer/pepper/pepper_in_process_resource_creation.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698