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

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

Issue 2130803002: Deleting the copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/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
deleted file mode 100644
index 91213c917a6e5077ad5fd2e12d113c7206c6a332..0000000000000000000000000000000000000000
--- a/components/copresence/handlers/audio/audio_directive_handler.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
-#define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
-
-#include <string>
-
-#include "components/audio_modem/public/whispernet_client.h"
-
-namespace copresence {
-
-class Directive;
-
-// The AudioDirectiveHandler handles audio transmit and receive instructions.
-class AudioDirectiveHandler {
- public:
- virtual ~AudioDirectiveHandler() {}
-
- // Do not use this class before calling this.
- virtual void Initialize(audio_modem::WhispernetClient* whispernet_client,
- const audio_modem::TokensCallback& tokens_cb) = 0;
-
- // 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;
-
- // Removes all instructions associated with this operation id.
- virtual void RemoveInstructions(const std::string& op_id) = 0;
-
- // Returns the currently playing token.
- virtual const std::string PlayingToken(audio_modem::AudioType type) const = 0;
-
- // Returns if we have heard the currently playing audio token.
- virtual bool IsPlayingTokenHeard(audio_modem::AudioType type) const = 0;
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
« no previous file with comments | « components/copresence/copresence_switches.cc ('k') | components/copresence/handlers/audio/audio_directive_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698