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

Side by Side Diff: content/renderer/media/audio_device_factory.h

Issue 199063002: Added unittest to WebRtcAudioRenderer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added content_export to AudioDeviceFactory, so bots pass the compile. Created 6 years, 9 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/content_tests.gypi ('k') | content/renderer/media/webrtc_audio_renderer_unittest.cc » ('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 CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
10 11
11 namespace media { 12 namespace media {
12 class AudioInputDevice; 13 class AudioInputDevice;
13 class AudioOutputDevice; 14 class AudioOutputDevice;
14 } 15 }
15 16
16 namespace content { 17 namespace content {
17 18
18 // A factory for creating AudioOutputDevices and AudioInputDevices. There is a 19 // A factory for creating AudioOutputDevices and AudioInputDevices. There is a
19 // global factory function that can be installed for the purposes of testing to 20 // global factory function that can be installed for the purposes of testing to
20 // provide specialized implementations. 21 // provide specialized implementations.
21 class AudioDeviceFactory { 22 class CONTENT_EXPORT AudioDeviceFactory {
22 public: 23 public:
23 // Creates an AudioOutputDevice using the currently registered factory. 24 // Creates an AudioOutputDevice using the currently registered factory.
24 // |render_view_id| and |render_frame_id| refer to the render view and render 25 // |render_view_id| and |render_frame_id| refer to the render view and render
25 // frame containing the entity producing the audio. 26 // frame containing the entity producing the audio.
26 static scoped_refptr<media::AudioOutputDevice> NewOutputDevice( 27 static scoped_refptr<media::AudioOutputDevice> NewOutputDevice(
27 int render_view_id, int render_frame_id); 28 int render_view_id, int render_frame_id);
28 29
29 // Creates an AudioInputDevice using the currently registered factory. 30 // Creates an AudioInputDevice using the currently registered factory.
30 // |render_view_id| refers to the render view containing the entity consuming 31 // |render_view_id| refers to the render view containing the entity consuming
31 // the audio. 32 // the audio.
(...skipping 15 matching lines...) Expand all
47 // The current globally registered factory. This is NULL when we should 48 // The current globally registered factory. This is NULL when we should
48 // create the default AudioRendererSinks. 49 // create the default AudioRendererSinks.
49 static AudioDeviceFactory* factory_; 50 static AudioDeviceFactory* factory_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory); 52 DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory);
52 }; 53 };
53 54
54 } // namespace content 55 } // namespace content
55 56
56 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ 57 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/media/webrtc_audio_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698