mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-05 03:36:08 +03:00
19 lines
669 B
Plaintext
19 lines
669 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.
|
||
|
|
||
|
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);
|
||
|
};
|