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

Side by Side Diff: content/browser/webui/empty_web_ui_factory.h

Issue 6708114: Revert 79691 - Move WebUIFactory to chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 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/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_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_view.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