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

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

Issue 806853003: Revert of 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 5cbaa1d2c27f497bb635e9b2fd6946731ff90f21..df2d1688886947c2f45c12783c8a1d9cf483aa35 100644
--- a/components/copresence/handlers/audio/audio_directive_handler.h
+++ b/components/copresence/handlers/audio/audio_directive_handler.h
@@ -10,13 +10,9 @@
#include "components/copresence/mediums/audio/audio_manager.h"
#include "components/copresence/public/copresence_constants.h"
-namespace base {
-class TimeDelta;
-}
-
namespace copresence {
-class TokenInstruction;
+class Directive;
class WhispernetClient;
// The AudioDirectiveHandler handles audio transmit and receive instructions.
@@ -30,9 +26,8 @@
// Adds an instruction to our handler. The instruction will execute and be
// removed after the ttl expires.
- virtual void AddInstruction(const TokenInstruction& instruction,
- const std::string& op_id,
- base::TimeDelta ttl) = 0;
+ virtual void AddInstruction(const Directive& directive,
+ const std::string& op_id) = 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