Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: chrome/browser/browser_about_handler.h

Issue 174277: override chrome:// URLs via extensions. (Closed)
Patch Set: fix linux errors Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/values.cc ('k') | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « base/values.cc ('k') | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698