summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_url_handler.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 03:25:11 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 03:25:11 +0000
commit7f0005ab19ca4e374029180753c32e4c9813303a (patch)
treef36e756a90ff4324530789c89aef6a2e2f3573b5 /chrome/browser/browser_url_handler.h
parentb237407befc41c3a19c7519523b102808213b49b (diff)
downloadchromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.zip
chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.tar.gz
chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.tar.bz2
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
Diffstat (limited to 'chrome/browser/browser_url_handler.h')
-rw-r--r--chrome/browser/browser_url_handler.h11
1 files changed, 3 insertions, 8 deletions
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 <vector>
-#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.