summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 0248eb2..c149320 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -76,7 +76,9 @@ class GeolocationDispatcher;
class GURL;
class ListValue;
class NavigationState;
+class PepperDeviceTest;
class PrintWebViewHelper;
+class WebPluginDelegatePepper;
class WebPluginDelegateProxy;
struct ContextMenuMediaParams;
struct ThumbnailScore;
@@ -440,6 +442,11 @@ class RenderView : public RenderWidget,
const std::string& css,
const std::string& id);
+ // Informs us that the given pepper plugin we created is being deleted the
+ // pointer must not be dereferenced as this is called from the destructor of
+ // the plugin.
+ void OnPepperPluginDestroy(WebPluginDelegatePepper* pepper_plugin);
+
// Whether content state (such as form state and scroll position) should be
// sent to the browser immediately. This is normally false, but set to true
// by some tests.
@@ -492,7 +499,8 @@ class RenderView : public RenderWidget,
virtual void Close();
virtual void OnResize(const gfx::Size& new_size,
const gfx::Rect& resizer_rect);
- virtual void DidPaint();
+ virtual void DidInitiatePaint();
+ virtual void DidFlushPaint();
virtual void DidHandleKeyEvent();
#if OS_MACOSX
virtual void OnSetFocus(bool enable);
@@ -503,6 +511,7 @@ class RenderView : public RenderWidget,
private:
// For unit tests.
friend class RenderViewTest;
+ friend class PepperDeviceTest;
FRIEND_TEST(RenderViewTest, OnLoadAlternateHTMLText);
FRIEND_TEST(RenderViewTest, OnNavStateChanged);
FRIEND_TEST(RenderViewTest, OnImeStateChanged);
@@ -1137,6 +1146,10 @@ class RenderView : public RenderWidget,
TextTranslatorImpl text_translator_;
scoped_ptr<PageTranslator> page_translator_;
+ // A list of all pepper plugins that we've created that haven't been
+ // destroyed yet.
+ std::set<WebPluginDelegatePepper*> current_pepper_plugins_;
+
// The FormManager for this RenderView.
FormManager form_manager_;