From 3e9a6407bbbc5f83eb8bd56c5c1d899dba9bc56f Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 4 Apr 2016 15:13:31 +0200 Subject: Implement CheckMediaAccessPermission Fixes access of label of MediaStream tracks Also fixes the logged error: WebContentsDelegate::CheckMediaAccessPermission: Not supported. Change-Id: I3fee9ccd9e8b2e5cbd6b707336cc61425a44ba31 Task-number: QTBUG-52216 Reviewed-by: Kai Koehne --- src/core/browser_context_adapter.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/browser_context_adapter.h') diff --git a/src/core/browser_context_adapter.h b/src/core/browser_context_adapter.h index 97a4dca4a..a388e9a0c 100644 --- a/src/core/browser_context_adapter.h +++ b/src/core/browser_context_adapter.h @@ -127,6 +127,8 @@ public: GeolocationPermission = 1, // Reserved: // NotificationPermission = 2, + AudioCapturePermission = 3, + VideoCapturePermission = 4, }; HttpCacheType httpCacheType() const; @@ -152,6 +154,7 @@ public: UserScriptControllerHost *userScriptController(); void permissionRequestReply(const QUrl &origin, PermissionType type, bool reply); + bool checkPermission(const QUrl &origin, PermissionType type); QString httpAcceptLanguageWithoutQualities() const; QString httpAcceptLanguage() const; -- cgit v1.2.3