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

Side by Side Diff: media/mojo/interfaces/media_permission.mojom

Issue 1838903007: media: Add mojo MediaPermission service Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module media.interfaces;
6
7 // An interface to query media related permission checks and requests.
8 interface MediaPermission {
9 enum Type {
10 PROTECTED_MEDIA_IDENTIFIER,
11 AUDIO_CAPTURE,
12 VIDEO_CAPTURE,
13 };
14
15 // Checks and returns whether |type| is permitted for |security_origion|
16 // without triggering user interaction (e.g. permission prompt). The result
17 // will be |false| if the permission has never been set.
18 HasPermission(Type type, string security_origin) => (bool granted);
19
20 // Requests and returns whether |type| is permitted for |security_origion|.
21 // This may trigger user interaction (e.g. permission prompt) if the
22 // permission has never been set.
23 RequestPermission(Type type, string security_origin) => (bool granted);
24 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698