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

Unified Diff: components/copresence/handlers/audio/audio_directive_handler.h

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 years, 10 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: components/copresence/handlers/audio/audio_directive_handler.h
diff --git a/components/copresence/handlers/audio/audio_directive_handler.h b/components/copresence/handlers/audio/audio_directive_handler.h
index df2d1688886947c2f45c12783c8a1d9cf483aa35..91213c917a6e5077ad5fd2e12d113c7206c6a332 100644
--- a/components/copresence/handlers/audio/audio_directive_handler.h
+++ b/components/copresence/handlers/audio/audio_directive_handler.h
@@ -7,13 +7,11 @@
#include <string>
-#include "components/copresence/mediums/audio/audio_manager.h"
-#include "components/copresence/public/copresence_constants.h"
+#include "components/audio_modem/public/whispernet_client.h"
namespace copresence {
class Directive;
-class WhispernetClient;
// The AudioDirectiveHandler handles audio transmit and receive instructions.
class AudioDirectiveHandler {
@@ -21,8 +19,8 @@ class AudioDirectiveHandler {
virtual ~AudioDirectiveHandler() {}
// Do not use this class before calling this.
- virtual void Initialize(WhispernetClient* whispernet_client,
- const TokensCallback& tokens_cb) = 0;
+ virtual void Initialize(audio_modem::WhispernetClient* whispernet_client,
+ const audio_modem::TokensCallback& tokens_cb) = 0;
// Adds an instruction to our handler. The instruction will execute and be
// removed after the ttl expires.
@@ -33,10 +31,10 @@ class AudioDirectiveHandler {
virtual void RemoveInstructions(const std::string& op_id) = 0;
// Returns the currently playing token.
- virtual const std::string PlayingToken(AudioType type) const = 0;
+ virtual const std::string PlayingToken(audio_modem::AudioType type) const = 0;
// Returns if we have heard the currently playing audio token.
- virtual bool IsPlayingTokenHeard(AudioType type) const = 0;
+ virtual bool IsPlayingTokenHeard(audio_modem::AudioType type) const = 0;
};
} // namespace copresence
« no previous file with comments | « components/copresence/copresence_switches.cc ('k') | components/copresence/handlers/audio/audio_directive_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698