summaryrefslogtreecommitdiffstats
path: root/content/browser/webui/empty_web_ui_factory.cc
blob: 4e4b8eb285e919c84314571b3db0ec8800d90453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/webui/empty_web_ui_factory.h"

namespace content {

EmptyWebUIFactory::EmptyWebUIFactory() {
}

EmptyWebUIFactory::~EmptyWebUIFactory() {
}

WebUI* EmptyWebUIFactory::CreateWebUIForURL(TabContents* source,
                                            const GURL& url) const {
  return NULL;
}

WebUI::TypeID EmptyWebUIFactory::GetWebUIType(
    content::BrowserContext* browser_context, const GURL& url) const {
  return WebUI::kNoWebUI;
}

bool EmptyWebUIFactory::UseWebUIForURL(
    content::BrowserContext* browser_context, const GURL& url) const {
  return false;
}

bool EmptyWebUIFactory::HasWebUIScheme(const GURL& url) const {
  return false;
}

bool EmptyWebUIFactory::IsURLAcceptableForWebUI(
    content::BrowserContext* browser_context,
    const GURL& url) const {
  return false;
}

// static
EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() {
  return Singleton<EmptyWebUIFactory>::get();
}

}  // namespace content