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-06-14 18:53:12 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-14 18:53:12 +0000
commit3014c2191c848afd47e9528deea70e54708ea0aa (patch)
tree5da8b7cd925146acc6ebb97d88952378e4dea567 /chrome/renderer/pepper_plugin_delegate_impl.h
parentbaedfdf14e911a4e9a3fbf36cd726e065bd08673 (diff)
downloadchromium_src-3014c2191c848afd47e9528deea70e54708ea0aa.zip
chromium_src-3014c2191c848afd47e9528deea70e54708ea0aa.tar.gz
chromium_src-3014c2191c848afd47e9528deea70e54708ea0aa.tar.bz2
Add some Linux make and scons files to the svn:ignore properties.
TEST=none BUG=none R=thomasvl git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/pepper_plugin_delegate_impl.h')
-rw-r--r--chrome/renderer/pepper_plugin_delegate_impl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.h b/chrome/renderer/pepper_plugin_delegate_impl.h
index 870a032..058a79c 100644
--- a/chrome/renderer/pepper_plugin_delegate_impl.h
+++ b/chrome/renderer/pepper_plugin_delegate_impl.h
@@ -5,6 +5,8 @@
#ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
#define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
+#include <set>
+
#include "base/basictypes.h"
#include "base/weak_ptr.h"
#include "webkit/glue/plugins/pepper_plugin_delegate.h"
@@ -17,13 +19,22 @@ class PepperPluginDelegateImpl
public:
explicit PepperPluginDelegateImpl(RenderView* render_view);
+ // Called by RenderView to tell us about painting events, these two functions
+ // just correspond to the DidInitiatePaint and DidFlushPaint in R.V..
+ void ViewInitiatedPaint();
+ void ViewFlushedPaint();
+
// pepper::PluginDelegate implementation.
+ virtual void InstanceCreated(pepper::PluginInstance* instance);
+ virtual void InstanceDeleted(pepper::PluginInstance* instance);
virtual PlatformImage2D* CreateImage2D(int width, int height);
private:
// Pointer to the RenderView that owns us.
RenderView* render_view_;
+ std::set<pepper::PluginInstance*> active_instances_;
+
DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
};