[email protected] | e0d0819 | 2011-03-29 19:02:50 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
[email protected] | 18bc42c9 | 2009-02-04 18:59:09 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
6 | #define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 7 | |
[email protected] | 18bc42c9 | 2009-02-04 18:59:09 | [diff] [blame] | 8 | class GURL; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 9 | |
[email protected] | 3d7474ff | 2011-07-27 17:47:37 | [diff] [blame] | 10 | namespace content { |
11 | class BrowserContext; | ||||
12 | } | ||||
13 | |||||
creis | 94a977f6 | 2015-02-18 23:51:05 | [diff] [blame] | 14 | // 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. | ||||
16 | bool FixupBrowserAboutURL(GURL* url, content::BrowserContext* browser_context); | ||||
17 | |||||
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 18 | // Returns true if the given URL will be handled by the browser about handler. |
[email protected] | b3adbd0 | 2011-11-30 22:23:27 | [diff] [blame] | 19 | // Nowadays, these go through the webui, so the return is always false. |
rsleevi | 24f64dc2 | 2015-08-07 21:39:21 | [diff] [blame] | 20 | // Either way, |url| will be processed by url_formatter::FixupURL, which |
[email protected] | b3adbd0 | 2011-11-30 22:23:27 | [diff] [blame] | 21 | // replaces the about: scheme with chrome:// for all about:foo URLs except |
22 | // "about:blank". | ||||
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 23 | // Some |url| host values will be replaced with their respective redirects. |
[email protected] | cd3d789 | 2009-03-04 23:55:06 | [diff] [blame] | 24 | // |
25 | // This is used by BrowserURLHandler. | ||||
[email protected] | 3d7474ff | 2011-07-27 17:47:37 | [diff] [blame] | 26 | bool WillHandleBrowserAboutURL(GURL* url, |
27 | content::BrowserContext* browser_context); | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 28 | |
[email protected] | cd3d789 | 2009-03-04 23:55:06 | [diff] [blame] | 29 | // 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. | ||||
32 | bool HandleNonNavigationAboutURL(const GURL& url); | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 33 | |
[email protected] | 18bc42c9 | 2009-02-04 18:59:09 | [diff] [blame] | 34 | #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |