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

Unified Diff: content/child/blink_platform_impl.h

Issue 801613004: Implement WebPermissionClient for Document and Worker contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with comments Created 5 years, 9 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: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index f4957396605b51eb98c747ed96d9bdbb8998f6bc..af2158755f6731615d113c4e64e407bb07b44a35 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -34,6 +34,7 @@ class MessageLoop;
namespace content {
class FlingCurveConfiguration;
class NotificationDispatcher;
+class PermissionManager;
class PushDispatcher;
class ThreadSafeSender;
class WebBluetoothImpl;
@@ -157,6 +158,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
virtual blink::WebNotificationManager* notificationManager();
virtual blink::WebPushProvider* pushProvider();
virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider();
+ virtual blink::WebPermissionClient* permissionClient();
void SuspendSharedTimer();
void ResumeSharedTimer();
@@ -176,6 +178,8 @@ class CONTENT_EXPORT BlinkPlatformImpl
void InternalInit();
void UpdateWebThreadTLS(blink::WebThread* thread);
+ bool IsMainThread() const;
+
scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread();
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
@@ -194,6 +198,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
scoped_refptr<NotificationDispatcher> notification_dispatcher_;
scoped_refptr<PushDispatcher> push_dispatcher_;
+ scoped_ptr<PermissionManager> permission_client_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698