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

Unified Diff: chrome/browser/browser_url_handler.h

Issue 174277: override chrome:// URLs via extensions. (Closed)
Patch Set: fix linux errors Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/browser_url_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_url_handler.h
diff --git a/chrome/browser/browser_url_handler.h b/chrome/browser/browser_url_handler.h
index 8200c8ab9411b10dff4a07408aef2bddba4d7574..593408e4402c7687dba57edcf3abb2acfb428247 100644
--- a/chrome/browser/browser_url_handler.h
+++ b/chrome/browser/browser_url_handler.h
@@ -15,6 +15,7 @@
#include <vector>
class GURL;
+class Profile;
// BrowserURLHandler manages the list of all special URLs and manages
// dispatching the URL handling to registered handlers.
@@ -26,11 +27,11 @@ class BrowserURLHandler {
// - optionally set |dispatcher| to the necessary DOMMessageDispatcher
// - return true.
// If the URL is not handled by a handler, it should return false.
- typedef bool (*URLHandler)(GURL* url);
+ typedef bool (*URLHandler)(GURL* url, Profile* profile);
// HandleBrowserURL gives all registered URLHandlers a shot at processing
// the given URL, and modifies it in place.
- static void RewriteURLIfNecessary(GURL* url);
+ static void RewriteURLIfNecessary(GURL* url, Profile* profile);
// We initialize the list of url_handlers_ lazily the first time MaybeHandle
// is called.
« no previous file with comments | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/browser_url_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698