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

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

Issue 2582533002: Simplify AudioInputRendererHost IPC interface. (Closed)
Patch Set: Rebase. Created 3 years, 11 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
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_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void StartCapture(); 55 void StartCapture();
56 void StopCapture(); 56 void StopCapture();
57 // Closes the stream. Make sure to call this before the object is destructed. 57 // Closes the stream. Make sure to call this before the object is destructed.
58 void ShutDown(); 58 void ShutDown();
59 59
60 // media::AudioInputIPCDelegate. 60 // media::AudioInputIPCDelegate.
61 void OnStreamCreated(base::SharedMemoryHandle handle, 61 void OnStreamCreated(base::SharedMemoryHandle handle,
62 base::SyncSocket::Handle socket_handle, 62 base::SyncSocket::Handle socket_handle,
63 int length, 63 int length,
64 int total_segments) override; 64 int total_segments) override;
65 void OnVolume(double volume) override; 65 void OnError() override;
66 void OnStateChanged(media::AudioInputIPCDelegateState state) override;
67 void OnIPCClosed() override; 66 void OnIPCClosed() override;
68 67
69 protected: 68 protected:
70 ~PepperPlatformAudioInput() override; 69 ~PepperPlatformAudioInput() override;
71 70
72 private: 71 private:
73 friend class base::RefCountedThreadSafe<PepperPlatformAudioInput>; 72 friend class base::RefCountedThreadSafe<PepperPlatformAudioInput>;
74 73
75 PepperPlatformAudioInput(); 74 PepperPlatformAudioInput();
76 75
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool pending_open_device_; 125 bool pending_open_device_;
127 // THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD. 126 // THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD.
128 int pending_open_device_id_; 127 int pending_open_device_id_;
129 128
130 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInput); 129 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInput);
131 }; 130 };
132 131
133 } // namespace content 132 } // namespace content
134 133
135 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ 134 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698