diff options
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. |