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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 9188056: Start splitting out WebUI into an implementation class and an interface that each page implements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
Index: chrome/browser/ui/webui/ntp/new_tab_ui.h
===================================================================
--- chrome/browser/ui/webui/ntp/new_tab_ui.h (revision 117388)
+++ chrome/browser/ui/webui/ntp/new_tab_ui.h (working copy)
@@ -16,13 +16,14 @@
#include "content/browser/webui/web_ui.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "content/public/browser/web_ui_controller.h"
class GURL;
class PrefService;
class Profile;
// The TabContents used for the New Tab page.
-class NewTabUI : public WebUI,
+class NewTabUI : public WebUI, public content::WebUIController,
public content::NotificationObserver {
public:
explicit NewTabUI(content::WebContents* manager);
@@ -42,8 +43,7 @@
// The current preference version.
static int current_pref_version() { return current_pref_version_; }
- // Override WebUI methods so we can hook up the paint timer to the render
- // view host.
+ // WebUIController implementation:
virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
virtual void RenderViewReused(RenderViewHost* render_view_host) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698