gecko-dev/dom/system/nsOSPermissionRequest.h
Haik Aftandilian ca8ba234b7 Bug 1487204 - Add platform support for calling authorizationStatusForMediaType and requestAccessForMediaType from JS r=spohl
Add a new interface nsIOSPermissionRequest for querying the
staus of access permissions for audio/video media capture and
requesting access to audio/video capture devices. Provides an
implementation for macOS 10.14 and a default implementation
(nsOSPermissionRequestBase) for earlier macOS versions and other
platforms. The default implementation always returns status
indicating access is allowed.

Differential Revision: https://phabricator.services.mozilla.com/D4601

--HG--
extra : moz-landing-system : lando
2018-09-06 16:06:15 +00:00

21 lines
676 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsOSPermissionRequest_h__
#define nsOSPermissionRequest_h__
#include "nsOSPermissionRequestBase.h"
/*
* The default implementation of nsOSPermissionRequestBase used on platforms
* that don't have a platform-specific version.
*/
class nsOSPermissionRequest : public nsOSPermissionRequestBase
{
};
#endif /* nsOSPermissionRequest_h__ */