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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 764643002: Remove WebViewKey in rules registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/guest_view/web_view/web_view_guest.h
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.h b/extensions/browser/guest_view/web_view/web_view_guest.h
index 31ca93e13aed2a8b086f149c177a7b92b23dd002..884b153d2aeabead9756c772ccdcf99ed5eae095 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h
@@ -25,6 +25,7 @@ struct WebFindOptions;
namespace extensions {
+class RulesRegistryService;
class WebViewInternalFindFunction;
// A WebViewGuest provides the browser-side implementation of the <webview> API
@@ -57,6 +58,16 @@ class WebViewGuest : public GuestView<WebViewGuest>,
static const char Type[];
+ static void GenerateRulesRegistryID(
+ int embedder_process_id,
+ int webview_instance_id,
+ RulesRegistryService* rules_registry_service,
+ int* rules_registry_id);
+
+ static int GetEmbedderProcessID(int process_id);
+
+ static void RemoveRulesRegistryID(int rules_registry_id);
+
// Request navigating the guest to the provided |src| URL.
void NavigateGuest(const std::string& src, bool force_navigation);
@@ -236,6 +247,7 @@ class WebViewGuest : public GuestView<WebViewGuest>,
private:
friend class WebViewPermissionHelper;
+
WebViewGuest(content::BrowserContext* browser_context,
int guest_instance_id);

Powered by Google App Engine
This is Rietveld 408576698