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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_factory.h

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures 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/chrome_web_ui_factory.h
===================================================================
--- chrome/browser/ui/webui/chrome_web_ui_factory.h (revision 117871)
+++ chrome/browser/ui/webui/chrome_web_ui_factory.h (working copy)
@@ -12,11 +12,8 @@
#include "content/public/browser/web_ui_factory.h"
#include "chrome/browser/favicon/favicon_service.h"
-class WebUI;
-class GURL;
class Profile;
class RefCountedMemory;
-class TabContents;
class ChromeWebUIFactory : public content::WebUIFactory {
public:
@@ -29,8 +26,9 @@
virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE;
virtual bool IsURLAcceptableForWebUI(content::BrowserContext* browser_context,
const GURL& url) const OVERRIDE;
- virtual WebUI* CreateWebUIForURL(content::WebContents* tab_contents,
- const GURL& url) const OVERRIDE;
+ virtual content::WebUIController* CreateWebUIForURL(
+ WebUI* web_ui,
+ const GURL& url) const OVERRIDE;
// Get the favicon for |page_url| and forward the result to the |request|
// when loaded.

Powered by Google App Engine
This is Rietveld 408576698