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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 | 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 // RenderAudioSourceProvider provides a bridge between classes: 5 // RenderAudioSourceProvider provides a bridge between classes:
6 // WebKit::WebAudioSourceProvider <---> media::AudioRendererSink 6 // WebKit::WebAudioSourceProvider <---> media::AudioRendererSink
7 // 7 //
8 // RenderAudioSourceProvider is a "sink" of audio, and uses a default 8 // RenderAudioSourceProvider is a "sink" of audio, and uses a default
9 // AudioOutputDevice if a client has not explicitly been set. 9 // AudioOutputDevice if a client has not explicitly been set.
10 // 10 //
(...skipping 13 matching lines...) Expand all
24 24
25 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
26 #include "media/base/audio_renderer_sink.h" 26 #include "media/base/audio_renderer_sink.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAudioSourceProvide r.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAudioSourceProvide r.h"
29 29
30 namespace WebKit { 30 namespace WebKit {
31 class WebAudioSourceProviderClient; 31 class WebAudioSourceProviderClient;
32 } 32 }
33 33
34 namespace content {
35
34 class RenderAudioSourceProvider 36 class RenderAudioSourceProvider
35 : public WebKit::WebAudioSourceProvider, 37 : public WebKit::WebAudioSourceProvider,
36 public media::AudioRendererSink { 38 public media::AudioRendererSink {
37 public: 39 public:
38 RenderAudioSourceProvider(); 40 RenderAudioSourceProvider();
39 41
40 // WebKit::WebAudioSourceProvider implementation. 42 // WebKit::WebAudioSourceProvider implementation.
41 43
42 // WebKit calls setClient() if it desires to take control of the rendered 44 // WebKit calls setClient() if it desires to take control of the rendered
43 // audio stream. We call client's setFormat() when the audio stream format 45 // audio stream. We call client's setFormat() when the audio stream format
(...skipping 29 matching lines...) Expand all
73 75
74 // Protects access to sink_ 76 // Protects access to sink_
75 base::Lock sink_lock_; 77 base::Lock sink_lock_;
76 78
77 // default_sink_ is the default sink. 79 // default_sink_ is the default sink.
78 scoped_refptr<media::AudioRendererSink> default_sink_; 80 scoped_refptr<media::AudioRendererSink> default_sink_;
79 81
80 DISALLOW_COPY_AND_ASSIGN(RenderAudioSourceProvider); 82 DISALLOW_COPY_AND_ASSIGN(RenderAudioSourceProvider);
81 }; 83 };
82 84
85 } // namespace content
86
83 #endif // CONTENT_RENDERER_MEDIA_RENDER_AUDIOSOURCEPROVIDER_H_ 87 #endif // CONTENT_RENDERER_MEDIA_RENDER_AUDIOSOURCEPROVIDER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/pepper_platform_video_decoder_impl.cc ('k') | content/renderer/media/render_audiosourceprovider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698