mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1731994: part 4) Declare more methods around ContentPermissionRequestBase
const
. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126350
This commit is contained in:
parent
5d0afe9005
commit
b507a6325d
@ -492,7 +492,7 @@ ContentPermissionRequestBase::CheckPromptPrefs() const {
|
||||
return PromptResult::Pending;
|
||||
}
|
||||
|
||||
bool ContentPermissionRequestBase::CheckPermissionDelegate() {
|
||||
bool ContentPermissionRequestBase::CheckPermissionDelegate() const {
|
||||
// There is case that ContentPermissionRequestBase is constructed without
|
||||
// window, then mPermissionHandler will be null. So we only check permission
|
||||
// delegate if we have non-null mPermissionHandler
|
||||
|
@ -126,7 +126,7 @@ class ContentPermissionRequestBase : public nsIContentPermissionRequest {
|
||||
PromptResult CheckPromptPrefs() const;
|
||||
|
||||
// Check if the permission has an opportunity to request.
|
||||
bool CheckPermissionDelegate();
|
||||
bool CheckPermissionDelegate() const;
|
||||
|
||||
enum class DelayedTaskType {
|
||||
Allow,
|
||||
|
@ -187,7 +187,7 @@ bool PermissionDelegateHandler::HasFeaturePolicyAllowed(
|
||||
}
|
||||
|
||||
bool PermissionDelegateHandler::HasPermissionDelegated(
|
||||
const nsACString& aType) {
|
||||
const nsACString& aType) const {
|
||||
MOZ_ASSERT(mDocument);
|
||||
|
||||
// System principal should have right to make permission request
|
||||
|
@ -67,7 +67,7 @@ class PermissionDelegateHandler final : public nsIPermissionDelegateHandler {
|
||||
/*
|
||||
* Indicates if we has the right to make permission request with aType
|
||||
*/
|
||||
bool HasPermissionDelegated(const nsACString& aType);
|
||||
bool HasPermissionDelegated(const nsACString& aType) const;
|
||||
|
||||
/*
|
||||
* Get permission state, which applied permission delegate policy.
|
||||
|
Loading…
Reference in New Issue
Block a user