blob: 2bbe5a8b7a5aa3c8bca832b9beedffa25c795daf [file] [log] [blame]
[email protected]e0d08192011-03-29 19:02:501// Copyright (c) 2011 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
[email protected]18bc42c92009-02-04 18:59:095#ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_
6#define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_
initial.commit09911bf2008-07-26 23:55:297
[email protected]18bc42c92009-02-04 18:59:098class GURL;
initial.commit09911bf2008-07-26 23:55:299
[email protected]3d7474ff2011-07-27 17:47:3710namespace content {
11class BrowserContext;
12}
13
creis94a977f62015-02-18 23:51:0514// A preliminary URLHandler that performs cleanup on the URL before it is
15// rewritten. Changes that happen here will not lead to a virtual URL.
16bool FixupBrowserAboutURL(GURL* url, content::BrowserContext* browser_context);
17
[email protected]89f550b2011-06-08 18:34:0318// Returns true if the given URL will be handled by the browser about handler.
[email protected]b3adbd02011-11-30 22:23:2719// Nowadays, these go through the webui, so the return is always false.
rsleevi24f64dc22015-08-07 21:39:2120// Either way, |url| will be processed by url_formatter::FixupURL, which
[email protected]b3adbd02011-11-30 22:23:2721// replaces the about: scheme with chrome:// for all about:foo URLs except
22// "about:blank".
[email protected]89f550b2011-06-08 18:34:0323// Some |url| host values will be replaced with their respective redirects.
[email protected]cd3d7892009-03-04 23:55:0624//
25// This is used by BrowserURLHandler.
[email protected]3d7474ff2011-07-27 17:47:3726bool WillHandleBrowserAboutURL(GURL* url,
27 content::BrowserContext* browser_context);
initial.commit09911bf2008-07-26 23:55:2928
[email protected]cd3d7892009-03-04 23:55:0629// We have a few magic commands that don't cause navigations, but rather pop up
30// dialogs. This function handles those cases, and returns true if so. In this
31// case, normal tab navigation should be skipped.
32bool HandleNonNavigationAboutURL(const GURL& url);
initial.commit09911bf2008-07-26 23:55:2933
[email protected]18bc42c92009-02-04 18:59:0934#endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_