Chromium Code Reviews| Index: components/copresence/mediums/audio/audio_manager_impl.h |
| diff --git a/components/copresence/mediums/audio/audio_manager_impl.h b/components/copresence/mediums/audio/audio_manager_impl.h |
| index 8148de6a1b753c08dc73064f0a298cb09efd3ed6..5b6c1d31c5e5b4558bf0a98034b70581b5121686 100644 |
| --- a/components/copresence/mediums/audio/audio_manager_impl.h |
| +++ b/components/copresence/mediums/audio/audio_manager_impl.h |
| @@ -10,6 +10,7 @@ |
| #include "base/callback.h" |
| #include "base/cancelable_callback.h" |
| +#include "base/files/file_path.h" |
| #include "base/macros.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_vector.h" |
| @@ -21,6 +22,10 @@ namespace base { |
| class Time; |
| } |
| +namespace media { |
| +class AudioBus; |
| +} |
| + |
| namespace copresence { |
| class AudioPlayer; |
| @@ -76,6 +81,12 @@ class AudioManagerImpl final : public AudioManager { |
| void DecodeSamplesConnector(const std::string& samples); |
| + void ValidateTokenDir(); |
|
rkc
2015/02/05 01:54:45
This is completely unnecessary. Once you are using
Charlie
2015/02/05 02:01:56
Very well. Deleted.
|
| + |
| + void DumpToken(AudioType audio_type, |
| + const std::string& token, |
| + const media::AudioBus* samples); |
| + |
| WhispernetClient* whispernet_client_; |
| // Callbacks to send tokens back to the CopresenceManager. |
| @@ -91,6 +102,7 @@ class AudioManagerImpl final : public AudioManager { |
| static_assert(INAUDIBLE == 1, "AudioType::INAUDIBLE should be 1."); |
| // Indexed using enum AudioType. |
| + bool player_enabled_[2]; |
| bool should_be_playing_[2]; |
| bool should_be_recording_[2]; |
| @@ -102,6 +114,7 @@ class AudioManagerImpl final : public AudioManager { |
| // Indexed using enum AudioType. |
| std::string playing_token_[2]; |
| + size_t token_length_[2]; |
| base::Time started_playing_[2]; |
| base::Time heard_own_token_[2]; |
| @@ -110,7 +123,7 @@ class AudioManagerImpl final : public AudioManager { |
| // Indexed using enum AudioType. |
| ScopedVector<SamplesMap> samples_cache_; |
| - size_t token_length_[2]; |
| + base::FilePath dump_tokens_dir_; |
| DISALLOW_COPY_AND_ASSIGN(AudioManagerImpl); |
| }; |