OLD | NEW |
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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "media/audio/audio_io.h" | 15 #include "media/audio/audio_io.h" |
16 #include "media/audio/audio_parameters.h" | 16 #include "media/base/audio_parameters.h" |
17 #include "media/base/media_export.h" | 17 #include "media/base/media_export.h" |
18 | 18 |
19 namespace media { | 19 namespace media { |
20 | 20 |
21 class AudioManager; | 21 class AudioManager; |
22 | 22 |
23 // This class sends a sound to the audio manager. | 23 // This class sends a sound to the audio manager. |
24 class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe { | 24 class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe { |
25 public: | 25 public: |
26 class TestObserver { | 26 class TestObserver { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 base::TimeDelta duration_; | 71 base::TimeDelta duration_; |
72 scoped_ptr<AudioStreamContainer> stream_; | 72 scoped_ptr<AudioStreamContainer> stream_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler); | 74 DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace media | 77 } // namespace media |
78 | 78 |
79 #endif // MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ | 79 #endif // MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ |
OLD | NEW |