OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/webui/empty_web_ui_factory.h" | 5 #include "content/browser/webui/empty_web_ui_factory.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 EmptyWebUIFactory::EmptyWebUIFactory() { | 9 EmptyWebUIFactory::EmptyWebUIFactory() { |
10 } | 10 } |
11 | 11 |
12 EmptyWebUIFactory::~EmptyWebUIFactory() { | 12 EmptyWebUIFactory::~EmptyWebUIFactory() { |
13 } | 13 } |
14 | 14 |
15 WebUI* EmptyWebUIFactory::CreateWebUIForURL(WebContents* source, | 15 WebUIController* EmptyWebUIFactory::CreateWebUIForURL(WebUI* web_ui, |
16 const GURL& url) const { | 16 const GURL& url) const { |
17 return NULL; | 17 return NULL; |
18 } | 18 } |
19 | 19 |
20 WebUI::TypeID EmptyWebUIFactory::GetWebUIType( | 20 WebUI::TypeID EmptyWebUIFactory::GetWebUIType( |
21 content::BrowserContext* browser_context, const GURL& url) const { | 21 content::BrowserContext* browser_context, const GURL& url) const { |
22 return WebUI::kNoWebUI; | 22 return WebUI::kNoWebUI; |
23 } | 23 } |
24 | 24 |
25 bool EmptyWebUIFactory::UseWebUIForURL( | 25 bool EmptyWebUIFactory::UseWebUIForURL( |
26 content::BrowserContext* browser_context, const GURL& url) const { | 26 content::BrowserContext* browser_context, const GURL& url) const { |
(...skipping 14 matching lines...) Expand all Loading... |
41 const GURL& url) const { | 41 const GURL& url) const { |
42 return false; | 42 return false; |
43 } | 43 } |
44 | 44 |
45 // static | 45 // static |
46 EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() { | 46 EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() { |
47 return Singleton<EmptyWebUIFactory>::get(); | 47 return Singleton<EmptyWebUIFactory>::get(); |
48 } | 48 } |
49 | 49 |
50 } // namespace content | 50 } // namespace content |
OLD | NEW |