mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
|
// 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 arc.mojom;
|
||
|
|
||
|
[Extensible]
|
||
|
enum MountEvent {
|
||
|
// Mounts a volume in Android.
|
||
|
MOUNTING,
|
||
|
// Unmounts a volume in Android.
|
||
|
UNMOUNTING,
|
||
|
};
|
||
|
|
||
|
[Extensible]
|
||
|
enum DeviceType {
|
||
|
// Neither USB device nor SD card is inserted.
|
||
|
DEVICE_TYPE_UNKNOWN,
|
||
|
// USB device is inserted.
|
||
|
DEVICE_TYPE_USB,
|
||
|
// SD card is inserted.
|
||
|
DEVICE_TYPE_SD,
|
||
|
};
|
||
|
|
||
|
struct MountPointInfo {
|
||
|
// The type of mount event to be triggered in Android.
|
||
|
MountEvent mount_event;
|
||
|
// The device source path of this mount point.
|
||
|
string source_path;
|
||
|
// The path to the mounted volume.
|
||
|
string mount_path;
|
||
|
// The fs_uuid of the disk. If empty, the event should be ignored.
|
||
|
string fs_uuid;
|
||
|
// The file system label.
|
||
|
string label;
|
||
|
// The device type that contains this mount point. If unknown, the event should be ignored.
|
||
|
DeviceType device_type;
|
||
|
};
|
||
|
|
||
|
// Notifies Android about Mounting events.
|
||
|
interface VolumeMounterInstance {
|
||
|
// @0 is reserved for Init().
|
||
|
// Triggers a mount event in Android.
|
||
|
OnMountEvent@1(MountPointInfo mount_point_info);
|
||
|
};
|