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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 69363002: Pepper: Tighten GetLiveModule in PluginRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Gross possible test fix Created 7 years, 1 month 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
Index: content/renderer/pepper/pepper_plugin_instance_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.h b/content/renderer/pepper/pepper_plugin_instance_impl.h
index cd419178e586bc6eb0c469fb8a33b7e519c80cc3..85d759cc765f85d0198cabd76d2405aead03876f 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -147,6 +147,9 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
// the WebPlugin implementation when WebKit is about to remove the plugin.
void Delete();
+ // Returns true if Delete() has been called on this object.
+ bool is_deleted() const;
+
// Paints the current backing store to the web page.
void Paint(blink::WebCanvas* canvas,
const gfx::Rect& plugin_rect,
@@ -848,6 +851,8 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_;
+ bool is_deleted_;
+
// We use a weak ptr factory for scheduling DidChangeView events so that we
// can tell whether updates are pending and consolidate them. When there's
// already a weak ptr pending (HasWeakPtrs is true), code should update the

Powered by Google App Engine
This is Rietveld 408576698