OLD | NEW |
| (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/browser/webui/web_ui_factory.h" | |
10 | |
11 namespace content { | |
12 | |
13 // A stubbed out version of WebUIFactory. | |
14 class EmptyWebUIFactory : public content::WebUIFactory { | |
15 public: | |
16 // Returns the singleton instance. | |
17 static EmptyWebUIFactory* GetInstance(); | |
18 | |
19 virtual WebUI* CreateWebUIForURL(TabContents* source, | |
20 const GURL& url) const; | |
21 virtual WebUI::TypeID GetWebUIType(Profile* profile, | |
22 const GURL& url) const; | |
23 virtual bool UseWebUIForURL(Profile* profile, const GURL& url) const; | |
24 virtual bool HasWebUIScheme(const GURL& url) const; | |
25 virtual bool IsURLAcceptableForWebUI(Profile* profile, | |
26 const GURL& url) const; | |
27 | |
28 private: | |
29 EmptyWebUIFactory(); | |
30 virtual ~EmptyWebUIFactory(); | |
31 | |
32 friend struct DefaultSingletonTraits<EmptyWebUIFactory>; | |
33 }; | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_ | |
OLD | NEW |