blob: 9442f567a398a6a1a607ecf8d297d9d6df453be0 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module blink.test.mojom;
import "third_party/blink/public/mojom/permissions/permission.mojom";
import "third_party/blink/public/mojom/permissions/permission_status.mojom";
import "url/mojom/url.mojom";
// Provides a way for tests to change the permission returned to permission
// requests of a certain type (via the PermissionService interface).
// See https://w3c.github.io/permissions/#automation
interface PermissionAutomation {
// Sets the permission for |descriptor| to |status| when queried or requested
// in |origin| from |embedding_origin|.
SetPermission(blink.mojom.PermissionDescriptor descriptor,
blink.mojom.PermissionStatus status,
url.mojom.Url origin,
url.mojom.Url embedding_origin) => (bool success);
};