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

Unified Diff: components/copresence/handlers/directive_handler.h

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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.h
diff --git a/components/copresence/handlers/directive_handler.h b/components/copresence/handlers/directive_handler.h
index f36aa88cc19a3a9e57d91dec81625c5001576ad1..0a2b3ae9e13fd2428e8bf7ef4c8d22e23bd68d9c 100644
--- a/components/copresence/handlers/directive_handler.h
+++ b/components/copresence/handlers/directive_handler.h
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "components/copresence/handlers/audio/audio_directive_handler.h"
-#include "components/copresence/mediums/audio/audio_recorder.h"
+#include "components/copresence/mediums/audio/audio_manager.h"
namespace copresence {
@@ -28,17 +28,15 @@ class DirectiveHandler {
// This function must be called before any others.
// TODO(ckehoe): Instead of this, use a static Create() method
// and make the constructor private.
- virtual void Initialize(
- const AudioRecorder::DecodeSamplesCallback& decode_cb,
- const AudioDirectiveHandler::EncodeTokenCallback& encode_cb);
+ virtual void Initialize(const AudioManager::DecodeSamplesCallback& decode_cb,
+ const AudioManager::EncodeTokenCallback& encode_cb);
// Adds a directive to handle.
virtual void AddDirective(const copresence::Directive& directive);
// Removes any directives associated with the given operation id.
virtual void RemoveDirectives(const std::string& op_id);
- const std::string& CurrentAudibleToken() const;
- const std::string& CurrentInaudibleToken() const;
+ const std::string& GetCurrentAudioToken(AudioType type) const;
private:
scoped_ptr<AudioDirectiveHandler> audio_handler_;

Powered by Google App Engine
This is Rietveld 408576698