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

Unified Diff: chrome/renderer/pepper_plugin_delegate_impl.h

Issue 2862002: Implement more of Flush properly. This adds support for waiting on the messag... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « chrome/renderer/pepper_devices_unittest.cc ('k') | chrome/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper_plugin_delegate_impl.h
===================================================================
--- chrome/renderer/pepper_plugin_delegate_impl.h (revision 49795)
+++ chrome/renderer/pepper_plugin_delegate_impl.h (working copy)
@@ -5,25 +5,40 @@
#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"
class RenderView;
+namespace pepper {
+class PluginInstance;
+}
+
class PepperPluginDelegateImpl
: public pepper::PluginDelegate,
public base::SupportsWeakPtr<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);
};
« no previous file with comments | « chrome/renderer/pepper_devices_unittest.cc ('k') | chrome/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698