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

Unified Diff: content/renderer/media/audio_input_device.h

Issue 7661017: Refactor AudioInputDevice to remove race conditions and allow more flexible calling sequences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/audio_input_device.h
===================================================================
--- content/renderer/media/audio_input_device.h (revision 96746)
+++ content/renderer/media/audio_input_device.h (working copy)
@@ -80,8 +80,8 @@
CaptureCallback* callback);
virtual ~AudioInputDevice();
- // Starts audio capturing. Returns |true| on success.
- bool Start();
+ // Starts audio capturing.
+ void Start();
// Stops audio capturing. Returns |true| on success.
bool Stop();
@@ -111,7 +111,7 @@
// sends IPC messages on that thread.
void InitializeOnIOThread(const AudioParameters& params);
void StartOnIOThread();
- void ShutDownOnIOThread();
+ void ShutDownOnIOThread(base::WaitableEvent* completion);
void SetVolumeOnIOThread(double volume);
void Send(IPC::Message* message);
« no previous file with comments | « no previous file | content/renderer/media/audio_input_device.cc » ('j') | content/renderer/media/audio_input_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698