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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
7
8 #include <string>
9
10 #include "components/audio_modem/public/whispernet_client.h"
11
12 namespace copresence {
13
14 class Directive;
15
16 // The AudioDirectiveHandler handles audio transmit and receive instructions.
17 class AudioDirectiveHandler {
18 public:
19 virtual ~AudioDirectiveHandler() {}
20
21 // Do not use this class before calling this.
22 virtual void Initialize(audio_modem::WhispernetClient* whispernet_client,
23 const audio_modem::TokensCallback& tokens_cb) = 0;
24
25 // Adds an instruction to our handler. The instruction will execute and be
26 // removed after the ttl expires.
27 virtual void AddInstruction(const Directive& directive,
28 const std::string& op_id) = 0;
29
30 // Removes all instructions associated with this operation id.
31 virtual void RemoveInstructions(const std::string& op_id) = 0;
32
33 // Returns the currently playing token.
34 virtual const std::string PlayingToken(audio_modem::AudioType type) const = 0;
35
36 // Returns if we have heard the currently playing audio token.
37 virtual bool IsPlayingTokenHeard(audio_modem::AudioType type) const = 0;
38 };
39
40 } // namespace copresence
41
42 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_AUDIO_DIRECTIVE_HANDLER_H_
OLDNEW
« 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