naiveproxy/services/audio/public/mojom/device_notifications.mojom

19 lines
669 B
Plaintext
Raw Normal View History

2018-08-11 08:35:24 +03:00
// 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.
module audio.mojom;
// This interface is implemented by clients of the audio service (e.g., the
// browser process) to register listeners of audio-device events.
interface DeviceListener {
DevicesChanged();
};
// This interface is exposed by the audio service to allow trusted clients
// (e.g., the browser process) to subscribe to device-change events.
interface DeviceNotifier {
// Registers a listener. Closing the pipe removes the subscription.
RegisterListener(DeviceListener listener);
};