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

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

Issue 461803003: Stop playing/recording when not needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 2dd6a8863d068b66ac48cb9a296dc4899f93f5a5..081b62efd253dc887aa0847417eae2ff6db58182 100644
--- a/components/copresence/handlers/directive_handler.h
+++ b/components/copresence/handlers/directive_handler.h
@@ -10,12 +10,11 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "components/copresence/handlers/audio/audio_directive_list.h"
+#include "components/copresence/handlers/audio/audio_directive_handler.h"
#include "components/copresence/mediums/audio/audio_recorder.h"
namespace copresence {
-class AudioDirectiveHandler;
class Directive;
// The directive handler manages transmit and receive directives
@@ -31,13 +30,16 @@ class DirectiveHandler {
// and make the constructor private.
virtual void Initialize(
const AudioRecorder::DecodeSamplesCallback& decode_cb,
- const AudioDirectiveList::EncodeTokenCallback& encode_cb);
+ const AudioDirectiveHandler::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;
+
private:
scoped_ptr<AudioDirectiveHandler> audio_handler_;

Powered by Google App Engine
This is Rietveld 408576698