| Index: chrome/browser/tab_contents/render_view_host_manager.h
|
| ===================================================================
|
| --- chrome/browser/tab_contents/render_view_host_manager.h (revision 9393)
|
| +++ chrome/browser/tab_contents/render_view_host_manager.h (working copy)
|
| @@ -7,6 +7,8 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "chrome/browser/renderer_host/render_view_host.h"
|
| +#include "chrome/common/notification_registrar.h"
|
| +#include "chrome/common/notification_observer.h"
|
|
|
| class InterstitialPage;
|
| class NavigationController;
|
| @@ -20,7 +22,7 @@
|
| // Manages RenderViewHosts for a WebContents. Normally there is only one and
|
| // it is easy to do. But we can also have transitions of processes (and hence
|
| // RenderViewHosts) that can get complex.
|
| -class RenderViewHostManager {
|
| +class RenderViewHostManager : public NotificationObserver {
|
| public:
|
| // Functions implemented by our owner that we need.
|
| //
|
| @@ -153,6 +155,10 @@
|
| return interstitial_page_;
|
| }
|
|
|
| + virtual void Observe(NotificationType type,
|
| + const NotificationSource& source,
|
| + const NotificationDetails& details);
|
| +
|
| private:
|
| friend class TestWebContents;
|
|
|
| @@ -216,6 +222,8 @@
|
| // (the InterstitialPage is self-owned, it deletes itself when hidden).
|
| InterstitialPage* interstitial_page_;
|
|
|
| + NotificationRegistrar registrar_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager);
|
| };
|
|
|
|
|