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

Unified Diff: chrome/browser/browser_about_handler.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 | « no previous file | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.h
diff --git a/chrome/browser/browser_about_handler.h b/chrome/browser/browser_about_handler.h
index be273eef3d18be32f6f1c8cfe4ede1bf49fca244..c496beb8a00288295a9aa617d4e008ef6b623905 100644
--- a/chrome/browser/browser_about_handler.h
+++ b/chrome/browser/browser_about_handler.h
@@ -19,13 +19,18 @@ template <typename T> struct DefaultSingletonTraits;
class GURL;
class Profile;
+namespace content {
+class BrowserContext;
+}
+
// Register a data source for a known source name. Safe to call multiple times.
// |name| may be an unkown host (e.g. "chrome://foo/"); only handle known hosts.
// In general case WillHandleBrowserAboutURL will initialize all data sources.
// But in some case like navigating to chrome://oobe on boot and loading
// chrome://terms in an iframe there, kChromeUITermsHost data source needs to
// be initialized separately.
-void InitializeAboutDataSource(const std::string& name, Profile* profile);
+void InitializeAboutDataSource(const std::string& name,
+ content::BrowserContext* browser_context);
// Returns true if the given URL will be handled by the browser about handler.
// |url| should have been processed by URLFixerUpper::FixupURL, which replaces
@@ -33,7 +38,8 @@ void InitializeAboutDataSource(const std::string& name, Profile* profile);
// Some |url| host values will be replaced with their respective redirects.
//
// This is used by BrowserURLHandler.
-bool WillHandleBrowserAboutURL(GURL* url, Profile* profile);
+bool WillHandleBrowserAboutURL(GURL* url,
+ content::BrowserContext* browser_context);
// We have a few magic commands that don't cause navigations, but rather pop up
// dialogs. This function handles those cases, and returns true if so. In this
« no previous file with comments | « no previous file | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698