diff options
author | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 18:42:04 +0000 |
---|---|---|
committer | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 18:42:04 +0000 |
commit | 744c2a2d90c3c9a33c818e1ea4b7ccb5010663a0 (patch) | |
tree | 1671691e79cab4bd2ba5339137145adda5eeeb55 /content/public/browser/web_ui_controller_factory.h | |
parent | b553de8ad8058d912e997ab5182433b7506afce6 (diff) | |
download | chromium_src-744c2a2d90c3c9a33c818e1ea4b7ccb5010663a0.zip chromium_src-744c2a2d90c3c9a33c818e1ea4b7ccb5010663a0.tar.gz chromium_src-744c2a2d90c3c9a33c818e1ea4b7ccb5010663a0.tar.bz2 |
Allow browser to handle all WebUI navigations.
BUG=113496
TEST="Google Dashboard" link in Sync settings loads in new process.
Review URL: http://codereview.chromium.org/9663045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/web_ui_controller_factory.h')
-rw-r--r-- | content/public/browser/web_ui_controller_factory.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/content/public/browser/web_ui_controller_factory.h b/content/public/browser/web_ui_controller_factory.h index fe5853e..412006e 100644 --- a/content/public/browser/web_ui_controller_factory.h +++ b/content/public/browser/web_ui_controller_factory.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -35,6 +35,8 @@ class CONTENT_EXPORT WebUIControllerFactory { const GURL& url) const = 0; // Shorthand for the above, but returns a simple yes/no. + // See also ContentClient::HasWebUIScheme, which only checks the scheme + // (faster) and can be used to determine security policy. virtual bool UseWebUIForURL(BrowserContext* browser_context, const GURL& url) const = 0; @@ -42,11 +44,6 @@ class CONTENT_EXPORT WebUIControllerFactory { virtual bool UseWebUIBindingsForURL(BrowserContext* browser_context, const GURL& url) const = 0; - // Returns true if the url has a scheme for WebUI. This differs from the above - // in that it only checks the scheme; it is faster and can be used to - // determine security policy. - virtual bool HasWebUIScheme(const GURL& url) const = 0; - // Returns true if the given URL can be loaded by Web UI system. This allows // URLs with WebUI types (as above) and also URLs that can be loaded by // normal tabs such as javascript: URLs or about:hang. |