Bug 1731994: part 3) Extend documentation of `ContentPermissionRequestBase`'s constructor. r=edgar

Differential Revision: https://phabricator.services.mozilla.com/D126349
This commit is contained in:
Mirko Brodesser 2021-09-23 08:48:17 +00:00
Родитель c3adf90c7d
Коммит 5d0afe9005
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -137,6 +137,7 @@ class ContentPermissionRequestBase : public nsIContentPermissionRequest {
protected:
// @param aPrefName see `mPrefName`.
// @param aType see `mType`.
ContentPermissionRequestBase(nsIPrincipal* aPrincipal,
nsPIDOMWindowInner* aWindow,
const nsACString& aPrefName,
@ -155,7 +156,10 @@ class ContentPermissionRequestBase : public nsIContentPermissionRequest {
// to either true or false. If no such testing is required, mPrefName may be
// empty.
const nsCString mPrefName;
// The type of the request, such as "autoplay-media-audible".
const nsCString mType;
bool mIsHandlingUserInput;
bool mMaybeUnsafePermissionDelegate;
};