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

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: Rebased 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
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32d0959e886ebdde4bc72baf72d67575391dc214..d94b8028f94fbaf5f26ba772db0f39815347a4b9 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -146,6 +146,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,
@@ -847,6 +850,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
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698