Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: content/browser/renderer_host/media/audio_stream_registry.h

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Thread checking. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698