#include "ui/message_center/notification_delegate.h"
namespace content {
-class RenderViewHost;
+class WebContents;
}
// Delegate for a notification. This class has two roles: to implement callback
// Returns the id of renderer process which creates the notification, or -1.
virtual int process_id() const;
- // Returns the RenderViewHost that generated the notification, or NULL.
- virtual content::RenderViewHost* GetRenderViewHost() const = 0;
+ // Returns the WebContents that generated the notification, or NULL.
+ virtual content::WebContents* GetWebContents() const = 0;
// Lets the delegate know that no more rendering will be necessary.
virtual void ReleaseRenderViewHost();