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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h

Issue 535203003: Replace Profile* in declarative_api with BrowserContext* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove changes to unit-test; those have to wait until move. Created 6 years, 3 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: chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h b/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h
index 188beaf85e8942849628040e5341f4fffc9a77ce..be48dc69df2123169567d32537a15501dbe23ce2 100644
--- a/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h
@@ -24,9 +24,12 @@
#include "components/url_matcher/url_matcher.h"
#include "extensions/browser/info_map.h"
-class Profile;
class WebRequestPermissions;
+namespace content {
+class BrowserContext;
+}
+
namespace extension_web_request_api_helpers {
struct EventResponseDelta;
}
@@ -75,7 +78,7 @@ class WebRequestRulesRegistry : public RulesRegistry {
public:
// |cache_delegate| can be NULL. In that case it constructs the registry with
// storage functionality suspended.
- WebRequestRulesRegistry(Profile* profile,
+ WebRequestRulesRegistry(content::BrowserContext* browser_context,
RulesCacheDelegate* cache_delegate,
const WebViewKey& webview_key);
@@ -183,7 +186,7 @@ class WebRequestRulesRegistry : public RulesRegistry {
url_matcher::URLMatcher url_matcher_;
- void* profile_id_;
+ content::BrowserContext* browser_context_;
scoped_refptr<InfoMap> extension_info_map_;
DISALLOW_COPY_AND_ASSIGN(WebRequestRulesRegistry);

Powered by Google App Engine
This is Rietveld 408576698