Index: content/plugin/npobject_stub.h |
diff --git a/content/plugin/npobject_stub.h b/content/plugin/npobject_stub.h |
index 3584cfe4640ff5f3607711e76977807160061f13..d48fa09aa450069bbfc60b2438ac5bc6ab2d5dca 100644 |
--- a/content/plugin/npobject_stub.h |
+++ b/content/plugin/npobject_stub.h |
@@ -38,13 +38,11 @@ class NPObjectStub : public IPC::Channel::Listener, |
const GURL& page_url); |
virtual ~NPObjectStub(); |
- // Cause the stub to ignore any further IPC messages, and to tear itself down |
- // the next time control returns to the message loop. |
- // The NPObject will be released only if |release_npobject| is true. |
- // This is used for the window script object stub in the renderer, which is |
- // freed with NPN_DeallocateObject to avoid leaks, and so we must not try to |
- // release it. |
- void DeleteSoon(bool release_npobject); |
+ // Schedules tear-down of this stub. The underlying NPObject reference is |
+ // released, and further invokations form the IPC channel will fail once this |
+ // call has returned. Deletion of the stub is deferred to the main loop, in |
+ // case it is touched as the stack unwinds. |
+ void DeleteSoon(); |
// IPC::Message::Sender implementation: |
virtual bool Send(IPC::Message* msg); |