Chromium Code Reviews| Index: content/browser/tab_contents/render_view_host_manager.h |
| diff --git a/content/browser/tab_contents/render_view_host_manager.h b/content/browser/tab_contents/render_view_host_manager.h |
| index 01ddbc8c6efc9e4ee16dd8de75ac60a555868ceb..572a9a2cc5cba8968450cfac490fffda0a7a5bcc 100644 |
| --- a/content/browser/tab_contents/render_view_host_manager.h |
| +++ b/content/browser/tab_contents/render_view_host_manager.h |
| @@ -10,6 +10,7 @@ |
| #include "base/logging.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "content/browser/renderer_host/render_view_host_delegate.h" |
| +#include "content/common/notification_observer.h" |
| #include "content/common/notification_registrar.h" |
| class WebUI; |
| @@ -25,7 +26,8 @@ class SiteInstance; |
| // it is easy to do. But we can also have transitions of processes (and hence |
| // RenderViewHosts) that can get complex. |
| class RenderViewHostManager |
| - : public RenderViewHostDelegate::RendererManagement { |
| + : public RenderViewHostDelegate::RendererManagement, |
| + public NotificationObserver { |
| public: |
| // Functions implemented by our owner that we need. |
| // |
| @@ -113,6 +115,11 @@ class RenderViewHostManager |
| // Returns the Web UI for the pending navigation, or NULL of none applies. |
| WebUI* pending_web_ui() const { return pending_web_ui_.get(); } |
| + // NotificationObserver. |
|
jam
2011/05/10 04:45:18
nit: the usual style is to add the inherited metho
Charlie Reis
2011/05/10 18:42:19
Done.
|
| + virtual void Observe(NotificationType type, |
| + const NotificationSource& source, |
| + const NotificationDetails& details); |
| + |
| // Called when we want to instruct the renderer to navigate to the given |
| // navigation entry. It may create a new RenderViewHost or re-use an existing |
| // one. The RenderViewHost to navigate will be returned. Returns NULL if one |
| @@ -224,6 +231,10 @@ class RenderViewHostManager |
| RenderViewHost* UpdateRendererStateForNavigate(const NavigationEntry& entry); |
| + // Called when a renderer process is starting to close. We should not |
| + // schedule new navigations in its swapped out RenderViewHosts after this. |
| + void RendererProcessClosing(RenderProcessHost* render_process_host); |
| + |
| // Our delegate, not owned by us. Guaranteed non-NULL. |
| Delegate* delegate_; |