QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / chrome / browser / browser_about_handler.h
blob2bbe5a8b7a5aa3c8bca832b9beedffa25c795daf
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_
6 #define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_
8 class GURL;
10 namespace content {
11 class BrowserContext;
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);
18 // Returns true if the given URL will be handled by the browser about handler.
19 // Nowadays, these go through the webui, so the return is always false.
20 // Either way, |url| will be processed by url_formatter::FixupURL, which
21 // replaces the about: scheme with chrome:// for all about:foo URLs except
22 // "about:blank".
23 // Some |url| host values will be replaced with their respective redirects.
25 // This is used by BrowserURLHandler.
26 bool WillHandleBrowserAboutURL(GURL* url,
27 content::BrowserContext* browser_context);
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);
34 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_