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

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: 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/browser_context.h ('k') | content/browser/browser_url_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..881c080c3061cc79abee8a60d7f9f0884970ffd0 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,8 @@ 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* browser_context);
// Returns the singleton instance.
static BrowserURLHandler* GetInstance();
@@ -39,12 +43,13 @@ 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* browser_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* browser_context);
// Add the specified handler pair to the list of URL handlers.
void AddHandlerPair(URLHandler handler, URLHandler reverse_handler);
« no previous file with comments | « content/browser/browser_context.h ('k') | content/browser/browser_url_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698