#include "content/browser/webui/web_ui_controller_factory_registry.h"
#include <stddef.h>
#include "base/lazy_instance.h"
#include "content/browser/renderer_host/debug_urls.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/common/content_client.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
#include "third_party/blink/public/common/chrome_debug_urls.h"
#include "url/gurl.h"
namespace content {
base::LazyInstance<std::vector<WebUIControllerFactory*>>::DestructorAtExit
g_web_ui_controller_factories = …;
void WebUIControllerFactory::RegisterFactory(WebUIControllerFactory* factory) { … }
int WebUIControllerFactory::GetNumRegisteredFactoriesForTesting() { … }
WebUIControllerFactoryRegistry* WebUIControllerFactoryRegistry::GetInstance() { … }
std::unique_ptr<WebUIController>
WebUIControllerFactoryRegistry::CreateWebUIControllerForURL(WebUI* web_ui,
const GURL& url) { … }
WebUI::TypeID WebUIControllerFactoryRegistry::GetWebUIType(
BrowserContext* browser_context,
const GURL& url) { … }
bool WebUIControllerFactoryRegistry::UseWebUIForURL(
BrowserContext* browser_context,
const GURL& url) { … }
bool WebUIControllerFactoryRegistry::IsURLAcceptableForWebUI(
BrowserContext* browser_context,
const GURL& url) { … }
WebUIControllerFactoryRegistry::WebUIControllerFactoryRegistry() = default;
WebUIControllerFactoryRegistry::~WebUIControllerFactoryRegistry() = default;
void WebUIControllerFactory::UnregisterFactoryForTesting(
WebUIControllerFactory* factory) { … }
}