stream_monitor.h 703 B

1234567891011121314151617181920212223242526
  1. // Copyright 2018 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. #ifndef SERVICES_AUDIO_STREAM_MONITOR_H_
  5. #define SERVICES_AUDIO_STREAM_MONITOR_H_
  6. #include "base/unguessable_token.h"
  7. namespace audio {
  8. class Snoopable;
  9. class StreamMonitor {
  10. public:
  11. // Called when a stream in the group becomes active.
  12. virtual void OnStreamActive(Snoopable* snoopable) = 0;
  13. // Called when a stream in the group becomes inactive.
  14. virtual void OnStreamInactive(Snoopable* snoopable) = 0;
  15. protected:
  16. virtual ~StreamMonitor() = default;
  17. };
  18. } // namespace audio
  19. #endif // SERVICES_AUDIO_STREAM_MONITOR_H_