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

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

Issue 824593003: Revert of Adding CopresenceState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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..5cbaa1d2c27f497bb635e9b2fd6946731ff90f21 100644
--- a/components/copresence/handlers/audio/audio_directive_handler.h
+++ b/components/copresence/handlers/audio/audio_directive_handler.h
@@ -10,9 +10,13 @@
#include "components/copresence/mediums/audio/audio_manager.h"
#include "components/copresence/public/copresence_constants.h"
+namespace base {
+class TimeDelta;
+}
+
namespace copresence {
-class Directive;
+class TokenInstruction;
class WhispernetClient;
// The AudioDirectiveHandler handles audio transmit and receive instructions.
@@ -26,8 +30,9 @@
// Adds an instruction to our handler. The instruction will execute and be
// removed after the ttl expires.
- virtual void AddInstruction(const Directive& directive,
- const std::string& op_id) = 0;
+ virtual void AddInstruction(const TokenInstruction& instruction,
+ const std::string& op_id,
+ base::TimeDelta ttl) = 0;
// Removes all instructions associated with this operation id.
virtual void RemoveInstructions(const std::string& op_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698