| 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
|
|
|