#include "content/browser/browser_url_handler_impl.h"
#include <stddef.h>
#include "base/not_fatal_until.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "content/browser/renderer_host/debug_urls.h"
#include "content/browser/webui/web_ui_impl.h"
#include "content/public/browser/content_browser_client.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 {
static bool HandleViewSource(GURL* url, BrowserContext* browser_context) { … }
static bool ReverseViewSource(GURL* url, BrowserContext* browser_context) { … }
static bool DebugURLHandler(GURL* url, BrowserContext* browser_context) { … }
BrowserURLHandler* BrowserURLHandler::GetInstance() { … }
BrowserURLHandler::URLHandler BrowserURLHandler::null_handler() { … }
BrowserURLHandlerImpl* BrowserURLHandlerImpl::GetInstance() { … }
BrowserURLHandlerImpl::BrowserURLHandlerImpl() { … }
BrowserURLHandlerImpl::~BrowserURLHandlerImpl() { … }
void BrowserURLHandlerImpl::AddHandlerPair(URLHandler handler,
URLHandler reverse_handler) { … }
void BrowserURLHandlerImpl::RewriteURLIfNecessary(
GURL* url,
BrowserContext* browser_context) { … }
std::vector<GURL> BrowserURLHandlerImpl::GetPossibleRewrites(
const GURL& url,
BrowserContext* browser_context) { … }
void BrowserURLHandlerImpl::RewriteURLIfNecessary(
GURL* url,
BrowserContext* browser_context,
bool* reverse_on_redirect) { … }
bool BrowserURLHandlerImpl::ReverseURLRewrite(
GURL* url, const GURL& original, BrowserContext* browser_context) { … }
void BrowserURLHandlerImpl::RemoveHandlerForTesting(URLHandler handler) { … }
}