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

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

Issue 12379071: Use multiple shared memory buffers cyclically for audio capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: address a missed comment Created 7 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 | 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client); 47 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client);
48 48
49 // PlatformAudioInput implementation (called on main thread). 49 // PlatformAudioInput implementation (called on main thread).
50 virtual void StartCapture() OVERRIDE; 50 virtual void StartCapture() OVERRIDE;
51 virtual void StopCapture() OVERRIDE; 51 virtual void StopCapture() OVERRIDE;
52 virtual void ShutDown() OVERRIDE; 52 virtual void ShutDown() OVERRIDE;
53 53
54 // media::AudioInputIPCDelegate. 54 // media::AudioInputIPCDelegate.
55 virtual void OnStreamCreated(base::SharedMemoryHandle handle, 55 virtual void OnStreamCreated(base::SharedMemoryHandle handle,
56 base::SyncSocket::Handle socket_handle, 56 base::SyncSocket::Handle socket_handle,
57 int length) OVERRIDE; 57 int length,
58 int total_segments) OVERRIDE;
58 virtual void OnVolume(double volume) OVERRIDE; 59 virtual void OnVolume(double volume) OVERRIDE;
59 virtual void OnStateChanged( 60 virtual void OnStateChanged(
60 media::AudioInputIPCDelegate::State state) OVERRIDE; 61 media::AudioInputIPCDelegate::State state) OVERRIDE;
61 virtual void OnDeviceReady(const std::string&) OVERRIDE; 62 virtual void OnDeviceReady(const std::string&) OVERRIDE;
62 virtual void OnIPCClosed() OVERRIDE; 63 virtual void OnIPCClosed() OVERRIDE;
63 64
64 protected: 65 protected:
65 virtual ~PepperPlatformAudioInputImpl(); 66 virtual ~PepperPlatformAudioInputImpl();
66 67
67 private: 68 private:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 119
119 // Initialized on the main thread and accessed on the I/O thread afterwards. 120 // Initialized on the main thread and accessed on the I/O thread afterwards.
120 media::AudioParameters params_; 121 media::AudioParameters params_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); 123 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl);
123 }; 124 };
124 125
125 } // namespace content 126 } // namespace content
126 127
127 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 128 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698