From 7f0005ab19ca4e374029180753c32e4c9813303a Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 15 Apr 2009 03:25:11 +0000 Subject: Remove TabContentsType from the NavigationController external interface and in some related areas. I removed all uses of this in the previous patch. Review URL: http://codereview.chromium.org/73057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13730 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_url_handler.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'chrome/browser/browser_url_handler.h') diff --git a/chrome/browser/browser_url_handler.h b/chrome/browser/browser_url_handler.h index cf46266..8200c8a 100644 --- a/chrome/browser/browser_url_handler.h +++ b/chrome/browser/browser_url_handler.h @@ -14,8 +14,6 @@ #include -#include "chrome/browser/tab_contents/tab_contents_type.h" - class GURL; // BrowserURLHandler manages the list of all special URLs and manages @@ -25,17 +23,14 @@ class BrowserURLHandler { // The type of functions that can process a URL. // If a handler handles |url|, it should : // - optionally modify |url| to the URL that should be sent to the renderer - // - set |type| to the proper TabContentsType // - 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, TabContentsType* type); + typedef bool (*URLHandler)(GURL* url); // HandleBrowserURL gives all registered URLHandlers a shot at processing - // this URL, and returns true if one of them handled the URL. If MaybeHandle - // returns false, then |type| and |dispatcher| should not be used and - // the URL should be handled like any normal URL. - static bool HandleBrowserURL(GURL* url, TabContentsType* type); + // the given URL, and modifies it in place. + static void RewriteURLIfNecessary(GURL* url); // We initialize the list of url_handlers_ lazily the first time MaybeHandle // is called. -- cgit v1.1