chromium/chromeos/crosapi/mojom/file_change_service_bridge.mojom

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module crosapi.mojom;

import "mojo/public/mojom/base/file_path.mojom";
import "url/mojom/url.mojom";

// The bridge implemented in Ash which is connected to the
// `FileChangeServiceBridge` in Lacros via crosapi. This bridge enables file
// change events originating from Lacros to be propagated to the
// `FileChangeService`, and its observers, in Ash.
//
// Next MinVersion: 1
// Next ID: 1
[Stable, Uuid="5c6b5748-65eb-40c1-9aa1-d20cbd8b226d"]
interface FileChangeServiceBridge {

    // Invoked when a file has been created at `file_path` in fulfillment of a
    // `window.showSaveFilePicker()` request from the given
    // `file_picker_binding_context`.
    //
    // See `content::FileSystemAccessEntryFactory::BindingContext`.
    OnFileCreatedFromShowSaveFilePicker@0(
        url.mojom.Url file_picker_binding_context,
        mojo_base.mojom.FilePath file_path);

};