naiveproxy/components/arc/common/appfuse.mojom
2018-12-09 21:59:24 -05:00

28 lines
841 B
Plaintext

// Copyright 2018 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.
// Next MinVersion: 1
module arc.mojom;
// Next Method ID: 3
interface AppfuseHost {
// Mounts a new appfuse file system and returns a filtered /dev/fuse FD
// associated with the mounted file system.
Mount@0(uint32 uid, int32 mount_id) => (handle? fd);
// Unmounts the specified appfuse file system.
Unmount@1(uint32 uid, int32 mount_id) => (bool success);
// Opens a file under the specified appfuse file system.
OpenFile@2(uint32 uid, int32 mount_id, int32 file_id, int32 flags) =>
(handle? fd);
};
// Next Method ID: 1
interface AppfuseInstance {
// Establishes full-duplex communication with the host.
Init@0(AppfuseHost host_ptr) => ();
};