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

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

Issue 11359196: Associate audio streams with their source/destination RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased; and numerous clean-ups. Created 8 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 | Annotate | Revision Log
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 "base/memory/weak_ptr.h"
8 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
9 #include "base/sync_socket.h" 10 #include "base/sync_socket.h"
10 #include "media/audio/audio_parameters.h" 11 #include "media/audio/audio_parameters.h"
11 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
12 13
13 namespace media { 14 namespace media {
14 15
15 // Contains IPC notifications for the state of the server side 16 // Contains IPC notifications for the state of the server side
16 // (AudioOutputController) audio state changes and when an AudioOutputController 17 // (AudioOutputController) audio state changes and when an AudioOutputController
17 // has been created. Implemented by AudioOutputDevice. 18 // has been created. Implemented by AudioOutputDevice.
(...skipping 30 matching lines...) Expand all
48 virtual void OnIPCClosed() = 0; 49 virtual void OnIPCClosed() = 0;
49 50
50 protected: 51 protected:
51 virtual ~AudioOutputIPCDelegate(); 52 virtual ~AudioOutputIPCDelegate();
52 }; 53 };
53 54
54 // Provides IPC functionality for an AudioOutputDevice. The implementation 55 // Provides IPC functionality for an AudioOutputDevice. The implementation
55 // should asynchronously deliver the messages to an AudioOutputController object 56 // should asynchronously deliver the messages to an AudioOutputController object
56 // (or create one in the case of CreateStream()), that may live in a separate 57 // (or create one in the case of CreateStream()), that may live in a separate
57 // process. 58 // process.
58 class MEDIA_EXPORT AudioOutputIPC { 59 class MEDIA_EXPORT AudioOutputIPC
60 : public base::SupportsWeakPtr<AudioOutputIPC> {
scherkus (not reviewing) 2012/11/27 22:55:26 Ahh! What was the motivation for this change? I d
miu 2012/11/28 07:26:20 Reverted the changes to this file. I had meant to
59 public: 61 public:
60 // Registers an AudioOutputIPCDelegate and returns a |stream_id| that must 62 // Registers an AudioOutputIPCDelegate and returns a |stream_id| that must
61 // be used with all other IPC functions in this interface. 63 // be used with all other IPC functions in this interface.
62 virtual int AddDelegate(AudioOutputIPCDelegate* delegate) = 0; 64 virtual int AddDelegate(AudioOutputIPCDelegate* delegate) = 0;
63 65
64 // Unregisters a delegate that was previously registered via a call to 66 // Unregisters a delegate that was previously registered via a call to
65 // AddDelegate(). The audio stream should be in a closed state prior to 67 // AddDelegate(). The audio stream should be in a closed state prior to
66 // calling this function. 68 // calling this function.
67 virtual void RemoveDelegate(int stream_id) = 0; 69 virtual void RemoveDelegate(int stream_id) = 0;
68 70
(...skipping 28 matching lines...) Expand all
97 // Sets the volume of the audio stream. 99 // Sets the volume of the audio stream.
98 virtual void SetVolume(int stream_id, double volume) = 0; 100 virtual void SetVolume(int stream_id, double volume) = 0;
99 101
100 protected: 102 protected:
101 virtual ~AudioOutputIPC(); 103 virtual ~AudioOutputIPC();
102 }; 104 };
103 105
104 } // namespace media 106 } // namespace media
105 107
106 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ 108 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_
OLDNEW
« media/audio/audio_output_device.h ('K') | « media/audio/audio_output_device_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698