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

Unified Diff: webkit/plugins/ppapi/ppb_proxy_impl.cc

Issue 6519057: Implement proxying for FileRef and FileChooser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix ppapi tests to account for query change Created 9 years, 10 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 | « webkit/plugins/ppapi/ppb_file_ref_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_proxy_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_proxy_impl.cc (revision 75293)
+++ webkit/plugins/ppapi/ppb_proxy_impl.cc (working copy)
@@ -6,6 +6,8 @@
#include "ppapi/c/private/ppb_proxy_private.h"
#include "webkit/plugins/ppapi/plugin_module.h"
+#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
+#include "webkit/plugins/ppapi/resource.h"
#include "webkit/plugins/ppapi/resource_tracker.h"
namespace webkit {
@@ -19,8 +21,16 @@
plugin_module->PluginCrashed();
}
+PP_Instance GetInstanceForResource(PP_Resource resource) {
+ scoped_refptr<Resource> obj(ResourceTracker::Get()->GetResource(resource));
+ if (!obj)
+ return 0;
+ return obj->instance()->pp_instance();
+}
+
const PPB_Proxy_Private ppb_proxy = {
- &PluginCrashed
+ &PluginCrashed,
+ &GetInstanceForResource
};
} // namespace
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_ref_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698