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

Unified Diff: content/browser/webui/web_ui_factory.h

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments Created 9 years, 5 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 | « content/browser/webui/empty_web_ui_factory.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/web_ui_factory.h
diff --git a/content/browser/webui/web_ui_factory.h b/content/browser/webui/web_ui_factory.h
index a1c6560fd9c0d3ed28ca32c29ca0667d4474ca4a..74c20df17ecde9b780b9a030d6b9092c16979078 100644
--- a/content/browser/webui/web_ui_factory.h
+++ b/content/browser/webui/web_ui_factory.h
@@ -8,12 +8,13 @@
#include "content/browser/webui/web_ui.h"
-class Profile;
class TabContents;
class GURL;
namespace content {
+class BrowserContext;
+
// Interface for an object which controls which URLs are considered WebUI URLs
// and creates WebUI instances for given URLs.
class WebUIFactory {
@@ -26,11 +27,12 @@ class WebUIFactory {
// Gets the WebUI type for the given URL. This will return kNoWebUI if the
// corresponding call to CreateWebUIForURL would fail, or something non-NULL
// if CreateWebUIForURL would succeed.
- virtual WebUI::TypeID GetWebUIType(Profile* profile,
+ virtual WebUI::TypeID GetWebUIType(content::BrowserContext* browser_context,
const GURL& url) const = 0;
// Shorthand for the above, but returns a simple yes/no.
- virtual bool UseWebUIForURL(Profile* profile, const GURL& url) const = 0;
+ virtual bool UseWebUIForURL(content::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
@@ -40,7 +42,7 @@ class WebUIFactory {
// 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.
- virtual bool IsURLAcceptableForWebUI(Profile* profile,
+ virtual bool IsURLAcceptableForWebUI(content::BrowserContext* browser_context,
const GURL& url) const = 0;
virtual ~WebUIFactory() {}
« no previous file with comments | « content/browser/webui/empty_web_ui_factory.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698