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

Side by Side Diff: media/audio/sounds/audio_stream_handler.h

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment 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
« no previous file with comments | « media/audio/pulse/pulse_output.h ('k') | media/audio/virtual_audio_input_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ 5 #ifndef MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_
6 #define MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ 6 #define MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "media/audio/audio_io.h" 17 #include "media/audio/audio_io.h"
18 #include "media/base/audio_parameters.h" 18 #include "media/base/audio_parameters.h"
19 #include "media/base/media_export.h" 19 #include "media/base/media_export.h"
20 20
21 namespace media { 21 namespace media {
22 22
23 class AudioManager;
24
25 // This class sends a sound to the audio manager. 23 // This class sends a sound to the audio manager.
26 class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe { 24 class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe {
27 public: 25 public:
28 class TestObserver { 26 class TestObserver {
29 public: 27 public:
30 virtual ~TestObserver() {} 28 virtual ~TestObserver() {}
31 29
32 // Following methods will be called only from the audio thread. 30 // Following methods will be called only from the audio thread.
33 31
34 // Called when AudioOutputStreamProxy::Start() was successfully called. 32 // Called when AudioOutputStreamProxy::Start() was successfully called.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 70
73 base::TimeDelta duration_; 71 base::TimeDelta duration_;
74 std::unique_ptr<AudioStreamContainer> stream_; 72 std::unique_ptr<AudioStreamContainer> stream_;
75 73
76 DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler); 74 DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler);
77 }; 75 };
78 76
79 } // namespace media 77 } // namespace media
80 78
81 #endif // MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ 79 #endif // MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_
OLDNEW
« no previous file with comments | « media/audio/pulse/pulse_output.h ('k') | media/audio/virtual_audio_input_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698