| OLD | NEW |
| 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_H_ | 5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ |
| 6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ | 6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 player_inaudible_ = player; | 76 player_inaudible_ = player; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void set_recorder_for_testing(AudioRecorder* recorder) { | 79 void set_recorder_for_testing(AudioRecorder* recorder) { |
| 80 recorder_ = recorder; | 80 recorder_ = recorder; |
| 81 } | 81 } |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 FRIEND_TEST_ALL_PREFIXES(AudioDirectiveHandlerTest, Basic); | 84 FRIEND_TEST_ALL_PREFIXES(AudioDirectiveHandlerTest, Basic); |
| 85 | 85 |
| 86 typedef TimedMap<std::string, scoped_refptr<media::AudioBusRefCounted> > | 86 typedef TimedMap<std::string, scoped_refptr<media::AudioBusRefCounted>> |
| 87 SamplesMap; | 87 SamplesMap; |
| 88 | 88 |
| 89 // Processes the next active transmit instruction. | 89 // Processes the next active transmit instruction. |
| 90 void ProcessNextTransmit(); | 90 void ProcessNextTransmit(); |
| 91 // Processes the next active receive instruction. | 91 // Processes the next active receive instruction. |
| 92 void ProcessNextReceive(); | 92 void ProcessNextReceive(); |
| 93 | 93 |
| 94 void PlayToken(const std::string token, bool audible); | 94 void PlayToken(const std::string token, bool audible); |
| 95 | 95 |
| 96 // This is the method that the whispernet client needs to call to return | 96 // This is the method that the whispernet client needs to call to return |
| (...skipping 28 matching lines...) Expand all Loading... |
| 125 // expires the oldest samples first. | 125 // expires the oldest samples first. |
| 126 SamplesMap samples_cache_audible_; | 126 SamplesMap samples_cache_audible_; |
| 127 SamplesMap samples_cache_inaudible_; | 127 SamplesMap samples_cache_inaudible_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler); | 129 DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace copresence | 132 } // namespace copresence |
| 133 | 133 |
| 134 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ | 134 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_ |
| OLD | NEW |