1// Copyright 2020 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5module mojo_base.mojom; 6 7// Corresponds to |base::File| in base/files/file.h but, on most 8// platforms, will not serialise handles which are writable. At 9// present this only supports physically backed files, but this may be 10// relaxed in future. 11// 12// SECURITY_NOTE: This type is an indication that a readonly handle can 13// be provided. A sandboxed process should ensure that the handle cannot 14// be made writable. This may not be possible on all platforms. 15// 16// See |file_mojom_traits.cc| for details. 17struct ReadOnlyFile { 18 handle<platform> fd; 19 bool async; 20}; 21