diff options
author | Charlie Kehoe <ckehoe@chromium.org> | 2015-02-19 16:44:34 -0800 |
---|---|---|
committer | Charlie Kehoe <ckehoe@chromium.org> | 2015-02-20 00:45:46 +0000 |
commit | d5f5d1157d418bb545df5621848a8f91e0b5c9f3 (patch) | |
tree | 9d2d834d83ea03b049d4c6bfa4dba42f55a53310 /components/audio_modem/public/whispernet_client.h | |
parent | da3105a6d3301c557b20fbbee9c5b00ac48840f0 (diff) | |
download | chromium_src-d5f5d1157d418bb545df5621848a8f91e0b5c9f3.zip chromium_src-d5f5d1157d418bb545df5621848a8f91e0b5c9f3.tar.gz chromium_src-d5f5d1157d418bb545df5621848a8f91e0b5c9f3.tar.bz2 |
Adding the Audio Modem API. See design doc at go/chrome-modem.
BUG=455823
R=isherman@chromium.org, rkc@chromium.org, rockot@chromium.org, sky@chromium.org
Review URL: https://codereview.chromium.org/917523004
Cr-Commit-Position: refs/heads/master@{#317196}
Diffstat (limited to 'components/audio_modem/public/whispernet_client.h')
-rw-r--r-- | components/audio_modem/public/whispernet_client.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/audio_modem/public/whispernet_client.h b/components/audio_modem/public/whispernet_client.h index c7219c8..48d1efa 100644 --- a/components/audio_modem/public/whispernet_client.h +++ b/components/audio_modem/public/whispernet_client.h @@ -34,27 +34,24 @@ class WhispernetClient { virtual void Initialize(const SuccessCallback& init_callback) = 0; // Fires an event to request a token encode. - virtual void EncodeToken(const std::string& token, AudioType type) = 0; + virtual void EncodeToken(const std::string& token, + AudioType type, + const TokenParameters token_params[2]) = 0; // Fires an event to request a decode for the given samples. virtual void DecodeSamples(AudioType type, const std::string& samples, - const size_t token_length[2]) = 0; - // Fires an event to request detection of a whispernet broadcast. - virtual void DetectBroadcast() = 0; + const TokenParameters token_params[2]) = 0; // Callback registration methods. The modem will set these to receive data. virtual void RegisterTokensCallback( const TokensCallback& tokens_callback) = 0; virtual void RegisterSamplesCallback( const SamplesCallback& samples_callback) = 0; - virtual void RegisterDetectBroadcastCallback( - const SuccessCallback& db_callback) = 0; // Don't cache these callbacks, as they may become invalid at any time. // Always invoke callbacks directly through these accessors. virtual TokensCallback GetTokensCallback() = 0; virtual SamplesCallback GetSamplesCallback() = 0; - virtual SuccessCallback GetDetectBroadcastCallback() = 0; virtual SuccessCallback GetInitializedCallback() = 0; virtual ~WhispernetClient() {} |