Release render view's remote objects when it's deleted.

Privously we release them when the window is unloaded, which is not
correct since a render view can have multiple windows (or js contexts)
and when the unload event is emitted the render view could already have
gone.

This PR does the cleaning work purely in browser, so here is no need to
worry about renderer's life time.
This commit is contained in:
Cheng Zhao 2013-12-06 14:44:25 +08:00
parent e9e90b481a
commit 623e0f3ae4
8 changed files with 28 additions and 11 deletions

View file

@ -43,6 +43,7 @@ class Window : public EventEmitter,
virtual void OnWindowBlur() OVERRIDE;
virtual void OnRendererUnresponsive() OVERRIDE;
virtual void OnRendererResponsive() OVERRIDE;
virtual void OnRenderViewDeleted() OVERRIDE;
virtual void OnRendererCrashed() OVERRIDE;
private: