blob: 69c9b32e56b028e4dc85aaa920067aef66cd920d [file] [log] [blame]
// Copyright 2017 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.mojom;
import "mojo/common/string16.mojom";
import "url/mojo/origin.mojom";
// The renderer uses this interface to ask the browser process about content
// settings for whether features are allowed to be used by the worker.
// Each method is called when every relevant web exposed API is called,
// and the result is returned synchronously because the web exposed
// APIs are synchronous.
interface WorkerContentSettingsProxy {
// Returns whether the worker is allowed access to IndexedDB.
[Sync]
AllowIndexedDB(mojo.common.mojom.String16 name) => (bool result);
// Returns whether the worker is allowed access to the file system.
[Sync]
RequestFileSystemAccessSync() => (bool result);
};