Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2260)

Unified Diff: chrome/browser/renderer_host/render_view_host.h

Issue 149142: Add a bunch of CHECKs to RenderViewHost trying to track down a crash. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host.h
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index b932e1cde606f3bb765adba43034ada4f02ccde9..c4afdb73d4a1f4432e04c1b6ee6b622f513d19e7 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -13,6 +13,7 @@
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
#include "chrome/browser/renderer_host/render_widget_host.h"
#include "chrome/common/modal_dialog_event.h"
+#include "chrome/common/notification_registrar.h"
#include "chrome/common/page_zoom.h"
#include "webkit/api/public/WebConsoleMessage.h"
#include "webkit/glue/autofill_form.h"
@@ -73,7 +74,8 @@ struct WebApplicationInfo;
// if we want to bring that and other functionality down into this object so
// it can be shared by others.
//
-class RenderViewHost : public RenderWidgetHost {
+class RenderViewHost : public RenderWidgetHost,
+ public NotificationObserver {
public:
// Returns the RenderViewHost given its ID and the ID of its render process.
// Returns NULL if the IDs do not correspond to a live RenderViewHost.
@@ -537,6 +539,11 @@ class RenderViewHost : public RenderWidgetHost {
void UpdateBackForwardListCount();
+ // NotificationObserver implementation.
+ void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
// The SiteInstance associated with this RenderViewHost. All pages drawn
// in this RenderViewHost are part of this SiteInstance. Should not change
// over time.
@@ -592,6 +599,8 @@ class RenderViewHost : public RenderWidgetHost {
// True if the render view can be shut down suddenly.
bool sudden_termination_allowed_;
+ NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
};
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698