OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUDIO_OUTPUT_IPC_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
12 #include "media/audio/audio_parameters.h" | 12 #include "media/audio/audio_parameters.h" |
13 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
14 #include "media/base/output_device.h" | 14 #include "media/base/output_device_info.h" |
15 #include "url/origin.h" | 15 #include "url/origin.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 // Current status of the audio output stream in the browser process. Browser | 19 // Current status of the audio output stream in the browser process. Browser |
20 // sends information about the current playback state and error to the | 20 // sends information about the current playback state and error to the |
21 // renderer process using this type. | 21 // renderer process using this type. |
22 enum AudioOutputIPCDelegateState { | 22 enum AudioOutputIPCDelegateState { |
23 AUDIO_OUTPUT_IPC_DELEGATE_STATE_PLAYING, | 23 AUDIO_OUTPUT_IPC_DELEGATE_STATE_PLAYING, |
24 AUDIO_OUTPUT_IPC_DELEGATE_STATE_PAUSED, | 24 AUDIO_OUTPUT_IPC_DELEGATE_STATE_PAUSED, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // AudioOutputController in the peer process. | 110 // AudioOutputController in the peer process. |
111 virtual void CloseStream() = 0; | 111 virtual void CloseStream() = 0; |
112 | 112 |
113 // Sets the volume of the audio stream. | 113 // Sets the volume of the audio stream. |
114 virtual void SetVolume(double volume) = 0; | 114 virtual void SetVolume(double volume) = 0; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace media | 117 } // namespace media |
118 | 118 |
119 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 119 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
OLD | NEW |