| Index: content/browser/webui/empty_web_ui_factory.cc
|
| diff --git a/content/browser/webui/empty_web_ui_factory.cc b/content/browser/webui/empty_web_ui_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fd29847c7a73c8f0500e65a48f322b65293e8a10
|
| --- /dev/null
|
| +++ b/content/browser/webui/empty_web_ui_factory.cc
|
| @@ -0,0 +1,44 @@
|
| +// 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(Profile* profile,
|
| + const GURL& url) const {
|
| + return WebUI::kNoWebUI;
|
| +}
|
| +
|
| +bool EmptyWebUIFactory::UseWebUIForURL(Profile* profile,
|
| + const GURL& url) const {
|
| + return false;
|
| +}
|
| +
|
| +bool EmptyWebUIFactory::HasWebUIScheme(const GURL& url) const {
|
| + return false;
|
| +}
|
| +
|
| +bool EmptyWebUIFactory::IsURLAcceptableForWebUI(Profile* profile,
|
| + const GURL& url) const {
|
| + return false;
|
| +}
|
| +
|
| +// static
|
| +EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() {
|
| + return Singleton<EmptyWebUIFactory>::get();
|
| +}
|
| +
|
| +} // namespace content
|
|
|