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

Side by Side Diff: media/audio/audio_output_ipc.h

Issue 2821203005: Add a mojo implementation of AudioOutputIPC. (Closed)
Patch Set: Use ScopedClosureRunner. Created 3 years, 6 months 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 | « content/test/BUILD.gn ('k') | media/mojo/interfaces/audio_output_stream.mojom » ('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 (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"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Starts playing the stream. This should generate a call to 91 // Starts playing the stream. This should generate a call to
92 // AudioOutputController::Play(). 92 // AudioOutputController::Play().
93 virtual void PlayStream() = 0; 93 virtual void PlayStream() = 0;
94 94
95 // Pauses an audio stream. This should generate a call to 95 // Pauses an audio stream. This should generate a call to
96 // AudioOutputController::Pause(). 96 // AudioOutputController::Pause().
97 virtual void PauseStream() = 0; 97 virtual void PauseStream() = 0;
98 98
99 // Closes the audio stream which should shut down the corresponding 99 // Closes the audio stream which should shut down the corresponding
100 // AudioOutputController in the peer process. 100 // AudioOutputController in the peer process. Usage of an AudioOutputIPC must
101 // always end with a call to CloseStream(), and the |delegate| passed to other
102 // method must remain valid until then. An exception is if OnIPCClosed is
103 // called first.
101 virtual void CloseStream() = 0; 104 virtual void CloseStream() = 0;
102 105
103 // Sets the volume of the audio stream. 106 // Sets the volume of the audio stream.
104 virtual void SetVolume(double volume) = 0; 107 virtual void SetVolume(double volume) = 0;
105 }; 108 };
106 109
107 } // namespace media 110 } // namespace media
108 111
109 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ 112 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | media/mojo/interfaces/audio_output_stream.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698