| Index: content/browser/permissions/permission_service_context.h
|
| diff --git a/content/browser/permissions/permission_service_context.h b/content/browser/permissions/permission_service_context.h
|
| index 46d6b397026a2ff26d577d6dfe8bff40d8209322..70573581bc8e44061d4864bfe102753a554cd3c8 100644
|
| --- a/content/browser/permissions/permission_service_context.h
|
| +++ b/content/browser/permissions/permission_service_context.h
|
| @@ -15,6 +15,7 @@ namespace content {
|
| class PermissionService;
|
| class PermissionServiceImpl;
|
| class RenderFrameHost;
|
| +class RenderProcessHost;
|
|
|
| // Provides information to a PermissionService. It is used by the
|
| // PermissionService to handle request permission UI.
|
| @@ -23,6 +24,7 @@ class RenderFrameHost;
|
| class PermissionServiceContext : public WebContentsObserver {
|
| public:
|
| explicit PermissionServiceContext(RenderFrameHost* render_frame_host);
|
| + explicit PermissionServiceContext(RenderProcessHost* render_process_host);
|
| virtual ~PermissionServiceContext();
|
|
|
| void CreateService(mojo::InterfaceRequest<PermissionService> request);
|
| @@ -31,6 +33,8 @@ class PermissionServiceContext : public WebContentsObserver {
|
| // connection error in order to get unregistered and killed.
|
| void ServiceHadConnectionError(PermissionServiceImpl* service);
|
|
|
| + BrowserContext* GetBrowserContext() const;
|
| +
|
| private:
|
| // WebContentsObserver
|
| void RenderFrameDeleted(RenderFrameHost* render_frame_host) override;
|
| @@ -41,6 +45,7 @@ class PermissionServiceContext : public WebContentsObserver {
|
| void CancelPendingRequests(RenderFrameHost*) const;
|
|
|
| RenderFrameHost* render_frame_host_;
|
| + RenderProcessHost* render_process_host_;
|
| ScopedVector<PermissionServiceImpl> services_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PermissionServiceContext);
|
|
|