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

Side by Side Diff: content/renderer/pepper/pepper_platform_audio_input_impl.h

Issue 10790121: First step towards moving AudioDevice from content/ to media/audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary #include Created 8 years, 5 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // PlatformAudioInput implementation (called on main thread). 48 // PlatformAudioInput implementation (called on main thread).
49 virtual void StartCapture() OVERRIDE; 49 virtual void StartCapture() OVERRIDE;
50 virtual void StopCapture() OVERRIDE; 50 virtual void StopCapture() OVERRIDE;
51 virtual void ShutDown() OVERRIDE; 51 virtual void ShutDown() OVERRIDE;
52 52
53 // AudioInputMessageFilter::Delegate. 53 // AudioInputMessageFilter::Delegate.
54 virtual void OnStreamCreated(base::SharedMemoryHandle handle, 54 virtual void OnStreamCreated(base::SharedMemoryHandle handle,
55 base::SyncSocket::Handle socket_handle, 55 base::SyncSocket::Handle socket_handle,
56 uint32 length) OVERRIDE; 56 uint32 length) OVERRIDE;
57 virtual void OnVolume(double volume) OVERRIDE; 57 virtual void OnVolume(double volume) OVERRIDE;
58 virtual void OnStateChanged(AudioStreamState state) OVERRIDE; 58 virtual void OnStateChanged(media::AudioStreamState state) OVERRIDE;
59 virtual void OnDeviceReady(const std::string&) OVERRIDE; 59 virtual void OnDeviceReady(const std::string&) OVERRIDE;
60 60
61 protected: 61 protected:
62 virtual ~PepperPlatformAudioInputImpl(); 62 virtual ~PepperPlatformAudioInputImpl();
63 63
64 private: 64 private:
65 friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>; 65 friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>;
66 66
67 PepperPlatformAudioInputImpl(); 67 PepperPlatformAudioInputImpl();
68 68
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Initialized on the main thread and accessed on the I/O thread afterwards. 113 // Initialized on the main thread and accessed on the I/O thread afterwards.
114 media::AudioParameters params_; 114 media::AudioParameters params_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); 116 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl);
117 }; 117 };
118 118
119 } // namespace content 119 } // namespace content
120 120
121 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 121 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698