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

Unified Diff: components/copresence/copresence_manager_impl.cc

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fixes 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/copresence_manager_impl.cc
diff --git a/components/copresence/copresence_manager_impl.cc b/components/copresence/copresence_manager_impl.cc
index 89d5e8a1bcad4a33203150033a22034c1635fb53..9cd9f7f3c129833a73a966a04452e54b2cf5fc57 100644
--- a/components/copresence/copresence_manager_impl.cc
+++ b/components/copresence/copresence_manager_impl.cc
@@ -11,15 +11,19 @@
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
+#include "components/audio_modem/public/whispernet_client.h"
#include "components/copresence/copresence_state_impl.h"
#include "components/copresence/handlers/directive_handler_impl.h"
#include "components/copresence/handlers/gcm_handler_impl.h"
#include "components/copresence/proto/rpcs.pb.h"
-#include "components/copresence/public/whispernet_client.h"
#include "components/copresence/rpc/rpc_handler.h"
using google::protobuf::RepeatedPtrField;
+using audio_modem::AUDIBLE;
+using audio_modem::AudioToken;
+using audio_modem::INAUDIBLE;
+
namespace {
const int kPollTimerIntervalMs = 3000; // milliseconds.
@@ -64,6 +68,7 @@ CopresenceManagerImpl::CopresenceManagerImpl(CopresenceDelegate* delegate)
kMaxQueuedMessages) {
DCHECK(delegate_);
DCHECK(delegate_->GetWhispernetClient());
+ // TODO(ckehoe): Handle whispernet initialization in the whispernet component.
delegate_->GetWhispernetClient()->Initialize(
whispernet_init_callback_.callback());

Powered by Google App Engine
This is Rietveld 408576698