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

Unified Diff: content/public/browser/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: content/public/browser/web_ui_factory.h
===================================================================
--- content/public/browser/web_ui_factory.h (revision 117871)
+++ content/public/browser/web_ui_factory.h (working copy)
@@ -15,6 +15,7 @@
class BrowserContext;
class WebContents;
+class WebUIController;
// Interface for an object which controls which URLs are considered WebUI URLs
// and creates WebUI instances for given URLs.
@@ -22,8 +23,8 @@
public:
// Returns a WebUI instance for the given URL, or NULL if the URL doesn't
Evan Stade 2012/01/17 19:14:56 this comment is out of date (WebUIController inste
jam 2012/01/17 19:20:45 yep I'm planning on updating the interface and met
// correspond to a WebUI.
- virtual WebUI* CreateWebUIForURL(WebContents* source,
- const GURL& url) const = 0;
+ virtual WebUIController* CreateWebUIForURL(WebUI* web_ui,
+ const GURL& url) const = 0;
// Gets the WebUI type for the given URL. This will return kNoWebUI if the
// corresponding call to CreateWebUIForURL would fail, or something non-NULL
« content/browser/webui/web_ui.cc ('K') | « content/public/browser/web_ui_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698