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

Side by Side Diff: components/copresence/handlers/audio/audio_directive_handler.h

Issue 453793002: Add audible support to the copresence API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ 5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_
6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ 6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 private: 50 private:
51 void StopPlayback(); 51 void StopPlayback();
52 void StopRecording(); 52 void StopRecording();
53 53
54 // Execute the next active transmit instruction. 54 // Execute the next active transmit instruction.
55 void ExecuteNextTransmit(); 55 void ExecuteNextTransmit();
56 // Execute the next active receive instruction. 56 // Execute the next active receive instruction.
57 void ExecuteNextReceive(); 57 void ExecuteNextReceive();
58 58
59 AudioDirectiveList directive_list_; 59 AudioDirectiveList directive_list_inaudible_;
60 AudioDirectiveList directive_list_audible_;
60 61
61 // The next two pointers are self-deleting. When we call Finalize on them, 62 // The next two pointers are self-deleting. When we call Finalize on them,
62 // they clean themselves up on the Audio thread. 63 // they clean themselves up on the Audio thread.
63 AudioPlayer* player_; 64 AudioPlayer* player_;
64 AudioRecorder* recorder_; 65 AudioRecorder* recorder_;
65 66
66 AudioRecorder::DecodeSamplesCallback decode_cb_; 67 AudioRecorder::DecodeSamplesCallback decode_cb_;
67 68
68 base::OneShotTimer<AudioDirectiveHandler> stop_playback_timer_; 69 base::OneShotTimer<AudioDirectiveHandler> stop_playback_timer_;
69 base::OneShotTimer<AudioDirectiveHandler> stop_recording_timer_; 70 base::OneShotTimer<AudioDirectiveHandler> stop_recording_timer_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler); 72 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler);
72 }; 73 };
73 74
74 } // namespace copresence 75 } // namespace copresence
75 76
76 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_ 77 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698