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

Unified Diff: extensions/browser/api/web_request/web_request_api.h

Issue 764643002: Remove WebViewKey in rules registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming move "remove rules registry for webview" part to WebViewGuest. Created 6 years, 1 month 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: extensions/browser/api/web_request/web_request_api.h
diff --git a/extensions/browser/api/web_request/web_request_api.h b/extensions/browser/api/web_request/web_request_api.h
index f519409aa99a916406fba22da6abbc96deaa4e92..15706f7a9409c057c7097ba417590c507a509d18 100644
--- a/extensions/browser/api/web_request/web_request_api.h
+++ b/extensions/browser/api/web_request/web_request_api.h
@@ -173,7 +173,7 @@ class ExtensionWebRequestEventRouter
// the rule registry for |browser_context|.
void RegisterRulesRegistry(
void* browser_context,
- const extensions::RulesRegistry::WebViewKey& webview_key,
+ int rules_registry_id,
scoped_refptr<extensions::WebRequestRulesRegistry> rules_registry);
// Dispatches the OnBeforeRequest event to any extensions whose filters match
@@ -476,8 +476,7 @@ class ExtensionWebRequestEventRouter
CallbacksForPageLoad callbacks_for_page_load_;
- typedef std::pair<void*, extensions::RulesRegistry::WebViewKey>
- RulesRegistryKey;
+ typedef std::pair<void*, int> RulesRegistryKey;
// Maps each browser_context (and OTRBrowserContext) and a webview key to its
// respective rules registry.
std::map<RulesRegistryKey,

Powered by Google App Engine
This is Rietveld 408576698