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

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

Issue 2919793002: Detect AudioInputStream muting and propagate to MediaStreamAudioSource. (Closed)
Patch Set: Reworked test again, to make tsan2 happy. Created 3 years, 6 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void StopCapture(); 53 void StopCapture();
54 // Closes the stream. Make sure to call this before the object is destructed. 54 // Closes the stream. Make sure to call this before the object is destructed.
55 void ShutDown(); 55 void ShutDown();
56 56
57 // media::AudioInputIPCDelegate. 57 // media::AudioInputIPCDelegate.
58 void OnStreamCreated(base::SharedMemoryHandle handle, 58 void OnStreamCreated(base::SharedMemoryHandle handle,
59 base::SyncSocket::Handle socket_handle, 59 base::SyncSocket::Handle socket_handle,
60 int length, 60 int length,
61 int total_segments) override; 61 int total_segments) override;
62 void OnError() override; 62 void OnError() override;
63 void OnMuted(bool is_muted) override;
63 void OnIPCClosed() override; 64 void OnIPCClosed() override;
64 65
65 protected: 66 protected:
66 ~PepperPlatformAudioInput() override; 67 ~PepperPlatformAudioInput() override;
67 68
68 private: 69 private:
69 friend class base::RefCountedThreadSafe<PepperPlatformAudioInput>; 70 friend class base::RefCountedThreadSafe<PepperPlatformAudioInput>;
70 71
71 PepperPlatformAudioInput(); 72 PepperPlatformAudioInput();
72 73
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool pending_open_device_; 122 bool pending_open_device_;
122 // THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD. 123 // THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD.
123 int pending_open_device_id_; 124 int pending_open_device_id_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInput); 126 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInput);
126 }; 127 };
127 128
128 } // namespace content 129 } // namespace content
129 130
130 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_ 131 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/processed_local_audio_source.cc ('k') | content/renderer/pepper/pepper_platform_audio_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698