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

Unified Diff: content/child/permissions/permission_dispatcher.h

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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/child/mojo/mojo_application.cc ('k') | content/child/permissions/permission_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/permissions/permission_dispatcher.h
diff --git a/content/child/permissions/permission_dispatcher.h b/content/child/permissions/permission_dispatcher.h
index 26e012b43a466506e52f7df87ed9e968adc1caa6..b281468d264fefd8cce50778960b63c69a087e1e 100644
--- a/content/child/permissions/permission_dispatcher.h
+++ b/content/child/permissions/permission_dispatcher.h
@@ -15,9 +15,11 @@
#include "third_party/WebKit/public/platform/modules/permissions/WebPermissionClient.h"
#include "third_party/WebKit/public/platform/modules/permissions/permission.mojom.h"
-namespace content {
+namespace shell {
+class InterfaceProvider;
+}
-class ServiceRegistry;
+namespace content {
// The PermissionDispatcher is a layer between Blink and the Mojo
// PermissionService. It implements blink::WebPermissionClient. It is being used
@@ -31,9 +33,9 @@ class PermissionDispatcher : public blink::WebPermissionClient,
// static values that never changes.
static bool IsObservable(blink::WebPermissionType type);
- // The caller must guarantee that |service_registry| will have a lifetime
+ // The caller must guarantee that |interface_registry| will have a lifetime
// larger than this instance of PermissionDispatcher.
- explicit PermissionDispatcher(ServiceRegistry* service_registry);
+ explicit PermissionDispatcher(shell::InterfaceProvider* remote_interfaces);
~PermissionDispatcher() override;
// blink::WebPermissionClient implementation.
@@ -151,7 +153,7 @@ class PermissionDispatcher : public blink::WebPermissionClient,
// Pending callbacks for request() multiple permissions.
PermissionsCallbackMap permissions_callbacks_;
- ServiceRegistry* service_registry_;
+ shell::InterfaceProvider* remote_interfaces_;
blink::mojom::PermissionServicePtr permission_service_;
DISALLOW_COPY_AND_ASSIGN(PermissionDispatcher);
« no previous file with comments | « content/child/mojo/mojo_application.cc ('k') | content/child/permissions/permission_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698