OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_STREAM_REGISTRY_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_STREAM_REGISTRY_H_ |
| 7 |
| 8 namespace content { |
| 9 |
| 10 // This class tracks all the input and output streams and enables stream |
| 11 // counting and debug recording controll for the RenderProcessHost. Methods |
| 12 // may only be called on the IO thread. |
| 13 class AudioStreamRegistry { |
| 14 public: |
| 15 class Stream { |
| 16 public: |
| 17 virtual ~Stream() {} |
| 18 /* |
| 19 virtual void EnableDebugRecording() = 0; |
| 20 virtual void DisableDebugRecording() = 0; |
| 21 */ |
| 22 }; |
| 23 |
| 24 virtual ~AudioStreamRegistry() {} |
| 25 |
| 26 // Streams must be removed before destruction. |
| 27 // virtual void RegisterInputStream(Stream* stream) = 0; |
| 28 virtual void RegisterOutputStream(Stream* stream) = 0; |
| 29 // virtual void DeregisterInputStream(Stream* stream) = 0; |
| 30 virtual void DeregisterOutputStream(Stream* stream) = 0; |
| 31 |
| 32 virtual void OutputStreamStateChanged(bool playing) = 0; |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_STREAM_REGISTRY_H_ |
OLD | NEW |