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

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

Issue 12440027: Do not pass the string device_id via IPC message to create an audio input stream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) OVERRIDE;
58 virtual void OnVolume(double volume) OVERRIDE; 58 virtual void OnVolume(double volume) OVERRIDE;
59 virtual void OnStateChanged( 59 virtual void OnStateChanged(
60 media::AudioInputIPCDelegate::State state) OVERRIDE; 60 media::AudioInputIPCDelegate::State state) OVERRIDE;
61 virtual void OnDeviceReady(const std::string&) OVERRIDE;
62 virtual void OnIPCClosed() OVERRIDE; 61 virtual void OnIPCClosed() OVERRIDE;
63 62
64 protected: 63 protected:
65 virtual ~PepperPlatformAudioInputImpl(); 64 virtual ~PepperPlatformAudioInputImpl();
66 65
67 private: 66 private:
68 friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>; 67 friend class base::RefCountedThreadSafe<PepperPlatformAudioInputImpl>;
69 68
70 PepperPlatformAudioInputImpl(); 69 PepperPlatformAudioInputImpl();
71 70
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 117
119 // Initialized on the main thread and accessed on the I/O thread afterwards. 118 // Initialized on the main thread and accessed on the I/O thread afterwards.
120 media::AudioParameters params_; 119 media::AudioParameters params_;
121 120
122 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); 121 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl);
123 }; 122 };
124 123
125 } // namespace content 124 } // namespace content
126 125
127 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 126 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698