| Index: content/browser/webui/empty_web_ui_factory.h
|
| diff --git a/content/browser/webui/empty_web_ui_factory.h b/content/browser/webui/empty_web_ui_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6ca8fca56beaf1e820ebb685c9cd66a8e252e222
|
| --- /dev/null
|
| +++ b/content/browser/webui/empty_web_ui_factory.h
|
| @@ -0,0 +1,38 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_
|
| +#define CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_
|
| +
|
| +#include "base/memory/singleton.h"
|
| +#include "content/browser/webui/web_ui_factory.h"
|
| +
|
| +namespace content {
|
| +
|
| +// A stubbed out version of WebUIFactory.
|
| +class EmptyWebUIFactory : public content::WebUIFactory {
|
| + public:
|
| + // Returns the singleton instance.
|
| + static EmptyWebUIFactory* GetInstance();
|
| +
|
| + virtual WebUI* CreateWebUIForURL(TabContents* source,
|
| + const GURL& url) const;
|
| + virtual WebUI::TypeID GetWebUIType(Profile* profile,
|
| + const GURL& url) const;
|
| + virtual bool UseWebUIForURL(Profile* profile, const GURL& url) const;
|
| + virtual bool HasWebUIScheme(const GURL& url) const;
|
| + virtual bool IsURLAcceptableForWebUI(Profile* profile,
|
| + const GURL& url) const;
|
| +
|
| + protected:
|
| + EmptyWebUIFactory();
|
| + virtual ~EmptyWebUIFactory();
|
| +
|
| + private:
|
| + friend struct DefaultSingletonTraits<EmptyWebUIFactory>;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_WEBUI_EMPTY_WEB_UI_FACTORY_H_
|
|
|