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

Unified Diff: content/browser/browser_url_handler.h

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now 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
Index: content/browser/browser_url_handler.h
diff --git a/content/browser/browser_url_handler.h b/content/browser/browser_url_handler.h
index dc86a7230182235bf46070968e05fd7178e0dfa7..094137e8864005a350e64fe6190dffe58623b45b 100644
--- a/content/browser/browser_url_handler.h
+++ b/content/browser/browser_url_handler.h
@@ -20,7 +20,10 @@
#include "base/memory/singleton.h"
class GURL;
-class Profile;
+
+namespace content {
+class BrowserContext;
+}
// BrowserURLHandler manages the list of all special URLs and manages
// dispatching the URL handling to registered handlers.
@@ -30,7 +33,7 @@ class BrowserURLHandler {
// If a handler handles |url|, it should :
// - optionally modify |url| to the URL that should be sent to the renderer
// If the URL is not handled by a handler, it should return false.
- typedef bool (*URLHandler)(GURL* url, Profile* profile);
+ typedef bool (*URLHandler)(GURL* url, content::BrowserContext* context);
jam 2011/07/21 16:41:54 nit: i think we should differentiate BrowserContex
// Returns the singleton instance.
static BrowserURLHandler* GetInstance();
@@ -39,12 +42,12 @@ class BrowserURLHandler {
// the given URL, and modifies it in place.
// If the original URL needs to be adjusted if the modified URL is redirected,
// this function sets |reverse_on_redirect| to true.
- void RewriteURLIfNecessary(GURL* url, Profile* profile,
+ void RewriteURLIfNecessary(GURL* url, content::BrowserContext* context,
bool* reverse_on_redirect);
// Reverses the rewriting that was done for |original| using the new |url|.
bool ReverseURLRewrite(GURL* url, const GURL& original,
- Profile* profile);
+ content::BrowserContext* context);
// Add the specified handler pair to the list of URL handlers.
void AddHandlerPair(URLHandler handler, URLHandler reverse_handler);

Powered by Google App Engine
This is Rietveld 408576698