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

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

Issue 9288074: Rename WebUIFactory to WebUIControllerFactory since that's what it creates now. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: blah 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/test_chrome_web_ui_controller_factory.h
===================================================================
--- chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.h (revision 119190)
+++ chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.h (working copy)
@@ -10,12 +10,13 @@
#include <map>
#include <string>
-#include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
+#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
#include "content/public/browser/web_ui.h"
// This class replaces the ChromeWebUIFactory when the switches::kTestType flag
-// is passed. It provides a registry to override CreateWebUIForURL() by host.
-class TestChromeWebUIFactory : public ChromeWebUIFactory {
+// is passed. It provides a registry to override CreateWebUIControllerForURL()
+// by host.
+class TestChromeWebUIControllerFactory : public ChromeWebUIControllerFactory {
public:
// Interface to create a new WebUI object.
class WebUIProvider {
@@ -42,17 +43,17 @@
virtual content::WebUI::TypeID GetWebUIType(
content::BrowserContext* browser_context,
const GURL& url) const OVERRIDE;
- virtual content::WebUIController* CreateWebUIForURL(
+ virtual content::WebUIController* CreateWebUIControllerForURL(
content::WebUI* web_ui, const GURL& url) const OVERRIDE;
// Return the singleton instance.
- static TestChromeWebUIFactory* GetInstance();
+ static TestChromeWebUIControllerFactory* GetInstance();
private:
- TestChromeWebUIFactory();
- virtual ~TestChromeWebUIFactory();
+ TestChromeWebUIControllerFactory();
+ virtual ~TestChromeWebUIControllerFactory();
- friend struct DefaultSingletonTraits<TestChromeWebUIFactory>;
+ friend struct DefaultSingletonTraits<TestChromeWebUIControllerFactory>;
// Return the WebUIProvider for the |url|'s host if it exists, otherwise NULL.
WebUIProvider* GetWebUIProvider(Profile* profile, const GURL& url) const;
@@ -60,7 +61,7 @@
// Stores the mapping of host to WebUIProvider.
FactoryOverridesMap factory_overrides_;
- DISALLOW_COPY_AND_ASSIGN(TestChromeWebUIFactory);
+ DISALLOW_COPY_AND_ASSIGN(TestChromeWebUIControllerFactory);
};
#endif // CHROME_BROWSER_UI_WEBUI_TEST_CHROME_WEB_UI_FACTORY_H_
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_factory.cc ('k') | chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698