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

Unified Diff: components/copresence/handlers/directive_handler_impl.cc

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/directive_handler_impl.cc
diff --git a/components/copresence/handlers/directive_handler_impl.cc b/components/copresence/handlers/directive_handler_impl.cc
index d2f8aa2d1d45efcb51f8410d001a02f01b3084b6..0ee56d81fc986aac12bcb1d9b8d5cf88964bc2da 100644
--- a/components/copresence/handlers/directive_handler_impl.cc
+++ b/components/copresence/handlers/directive_handler_impl.cc
@@ -35,8 +35,9 @@ DirectiveHandlerImpl::DirectiveHandlerImpl(
DirectiveHandlerImpl::~DirectiveHandlerImpl() {}
-void DirectiveHandlerImpl::Start(WhispernetClient* whispernet_client,
- const TokensCallback& tokens_cb) {
+void DirectiveHandlerImpl::Start(
+ audio_modem::WhispernetClient* whispernet_client,
+ const audio_modem::TokensCallback& tokens_cb) {
audio_handler_->Initialize(whispernet_client, tokens_cb);
DVLOG(2) << "Directive handler starting";
@@ -93,13 +94,14 @@ void DirectiveHandlerImpl::RemoveDirectives(const std::string& op_id) {
}
}
-const std::string DirectiveHandlerImpl::GetCurrentAudioToken(AudioType type)
- const {
+const std::string DirectiveHandlerImpl::GetCurrentAudioToken(
+ audio_modem::AudioType type) const {
// If whispernet_client_ is null, audio_handler_ hasn't been Initialized.
return is_started_ ? audio_handler_->PlayingToken(type) : "";
}
-bool DirectiveHandlerImpl::IsAudioTokenHeard(AudioType type) const {
+bool DirectiveHandlerImpl::IsAudioTokenHeard(
+ audio_modem::AudioType type) const {
return is_started_ ? audio_handler_->IsPlayingTokenHeard(type) : false;
}
« no previous file with comments | « components/copresence/handlers/directive_handler_impl.h ('k') | components/copresence/handlers/directive_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698