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

Side by Side Diff: content/browser/webui/empty_web_ui_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_
6 #define CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "content/common/content_export.h"
10 #include "content/public/browser/web_ui_factory.h"
11
12 namespace content {
13
14 // A stubbed out version of WebUIFactory.
15 class CONTENT_EXPORT EmptyWebUIFactory : public content::WebUIFactory {
16 public:
17 // Returns the singleton instance.
18 static EmptyWebUIFactory* GetInstance();
19
20 virtual WebUIController* CreateWebUIForURL(WebUI* web_ui,
21 const GURL& url) const OVERRIDE;
22 virtual WebUI::TypeID GetWebUIType(content::BrowserContext* browser_context,
23 const GURL& url) const OVERRIDE;
24 virtual bool UseWebUIForURL(content::BrowserContext* browser_context,
25 const GURL& url) const OVERRIDE;
26 virtual bool UseWebUIBindingsForURL(content::BrowserContext* browser_context,
27 const GURL& url) const OVERRIDE;
28 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE;
29 virtual bool IsURLAcceptableForWebUI(content::BrowserContext* browser_context,
30 const GURL& url) const OVERRIDE;
31
32 protected:
33 EmptyWebUIFactory();
34 virtual ~EmptyWebUIFactory();
35
36 private:
37 friend struct DefaultSingletonTraits<EmptyWebUIFactory>;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_unittest.cc ('k') | content/browser/webui/empty_web_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698