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 #include "content/browser/webui/empty_web_ui_factory.h" | |
6 | |
7 namespace content { | |
8 | |
9 EmptyWebUIFactory::EmptyWebUIFactory() { | |
10 } | |
11 | |
12 EmptyWebUIFactory::~EmptyWebUIFactory() { | |
13 } | |
14 | |
15 WebUI* EmptyWebUIFactory::CreateWebUIForURL(TabContents* source, | |
16 const GURL& url) const { | |
17 return NULL; | |
18 } | |
19 | |
20 WebUI::TypeID EmptyWebUIFactory::GetWebUIType(Profile* profile, | |
21 const GURL& url) const { | |
22 return WebUI::kNoWebUI; | |
23 } | |
24 | |
25 bool EmptyWebUIFactory::UseWebUIForURL(Profile* profile, | |
26 const GURL& url) const { | |
27 return false; | |
28 } | |
29 | |
30 bool EmptyWebUIFactory::HasWebUIScheme(const GURL& url) const { | |
31 return false; | |
32 } | |
33 | |
34 bool EmptyWebUIFactory::IsURLAcceptableForWebUI(Profile* profile, | |
35 const GURL& url) const { | |
36 return false; | |
37 } | |
38 | |
39 // static | |
40 EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() { | |
41 return Singleton<EmptyWebUIFactory>::get(); | |
42 } | |
43 | |
44 } // namespace content | |
OLD | NEW |