OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Contains code for handling "about:" URLs in the browser process. | 5 // Contains code for handling "about:" URLs in the browser process. |
6 | 6 |
7 #ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 7 #ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
8 #define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 8 #define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
9 | 9 |
10 class GURL; | 10 class GURL; |
| 11 class Profile; |
11 | 12 |
12 // Decides whether the given URL will be handled by the browser about handler | 13 // Decides whether the given URL will be handled by the browser about handler |
13 // and returns true if so. On true, it may also modify the given URL to be the | 14 // and returns true if so. On true, it may also modify the given URL to be the |
14 // final form (we fix up most "about:" URLs to be "chrome:" because WebKit | 15 // final form (we fix up most "about:" URLs to be "chrome:" because WebKit |
15 // handles all "about:" URLs as "about:blank. | 16 // handles all "about:" URLs as "about:blank. |
16 // | 17 // |
17 // This is used by BrowserURLHandler. | 18 // This is used by BrowserURLHandler. |
18 bool WillHandleBrowserAboutURL(GURL* url); | 19 bool WillHandleBrowserAboutURL(GURL* url, Profile* profile); |
19 | 20 |
20 // We have a few magic commands that don't cause navigations, but rather pop up | 21 // We have a few magic commands that don't cause navigations, but rather pop up |
21 // dialogs. This function handles those cases, and returns true if so. In this | 22 // dialogs. This function handles those cases, and returns true if so. In this |
22 // case, normal tab navigation should be skipped. | 23 // case, normal tab navigation should be skipped. |
23 bool HandleNonNavigationAboutURL(const GURL& url); | 24 bool HandleNonNavigationAboutURL(const GURL& url); |
24 | 25 |
25 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 26 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
OLD | NEW |