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

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

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | content/renderer/pepper/resource_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/renderer_ppapi_host_impl.cc
===================================================================
--- content/renderer/pepper/renderer_ppapi_host_impl.cc (revision 214295)
+++ content/renderer/pepper/renderer_ppapi_host_impl.cc (working copy)
@@ -16,7 +16,6 @@
#include "content/renderer/pepper/pepper_in_process_router.h"
#include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
-#include "content/renderer/pepper/plugin_delegate.h"
#include "content/renderer/pepper/plugin_module.h"
#include "content/renderer/render_view_impl.h"
#include "content/renderer/render_widget_fullscreen_pepper.h"
@@ -131,8 +130,7 @@
// Since we're the embedder, we can make assumptions about the delegate on
// the instance.
- PepperPluginDelegateImpl* delegate =
- static_cast<PepperPluginDelegateImpl*>(instance_object->delegate());
+ PepperPluginDelegateImpl* delegate = instance_object->delegate();
if (!delegate)
return NULL;
@@ -156,8 +154,7 @@
// Since we're the embedder, we can make assumptions about the delegate on
// the instance and get back to our RenderView.
- return static_cast<PepperPluginDelegateImpl*>(
- instance_object->delegate())->render_view();
+ return instance_object->delegate()->render_view();
}
bool RendererPpapiHostImpl::IsValidInstance(PP_Instance instance) const {
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | content/renderer/pepper/resource_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698