summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/pepper_plugin_delegate_impl.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 05:29:03 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 05:29:03 +0000
commitbd1b93d983c6cbf8e32458bd36a3aadf7490a770 (patch)
tree4670a311dfa2faf487a9b1810ca2eda6df64e8e6 /chrome/renderer/pepper_plugin_delegate_impl.h
parentbeaafbaf7a599c92912702bc2b5b3e770849a74a (diff)
downloadchromium_src-bd1b93d983c6cbf8e32458bd36a3aadf7490a770.zip
chromium_src-bd1b93d983c6cbf8e32458bd36a3aadf7490a770.tar.gz
chromium_src-bd1b93d983c6cbf8e32458bd36a3aadf7490a770.tar.bz2
Implement a version of WebPlugin for Pepper to bypass the current NPAPI
WebPluginImpl. We don't need most of that NPAPI cruft and can remove this extra layer of abstraction to keep our code simpler. TEST=none BUG=none Review URL: http://codereview.chromium.org/2001014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/pepper_plugin_delegate_impl.h')
-rw-r--r--chrome/renderer/pepper_plugin_delegate_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.h b/chrome/renderer/pepper_plugin_delegate_impl.h
index 6f54a91..870a032 100644
--- a/chrome/renderer/pepper_plugin_delegate_impl.h
+++ b/chrome/renderer/pepper_plugin_delegate_impl.h
@@ -6,11 +6,14 @@
#define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
#include "base/basictypes.h"
+#include "base/weak_ptr.h"
#include "webkit/glue/plugins/pepper_plugin_delegate.h"
class RenderView;
-class PepperPluginDelegateImpl : public pepper::PluginDelegate {
+class PepperPluginDelegateImpl
+ : public pepper::PluginDelegate,
+ public base::SupportsWeakPtr<PepperPluginDelegateImpl> {
public:
explicit PepperPluginDelegateImpl(RenderView* render_view);