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

Side by Side Diff: components/audio_modem/public/modem.h

Issue 2131993002: Delete the audio modem and copresence private APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eol
Patch Set: Sync again 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 2015 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_AUDIO_MODEM_PUBLIC_MODEM_H_
6 #define COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "components/audio_modem/public/audio_modem_types.h"
12
13 namespace audio_modem {
14
15 class WhispernetClient;
16
17 class Modem {
18 public:
19 virtual ~Modem() {}
20
21 // Initializes the object. Do not use this object before calling this method.
22 virtual void Initialize(WhispernetClient* client,
23 const TokensCallback& tokens_cb) = 0;
24
25 virtual void StartPlaying(AudioType type) = 0;
26 virtual void StopPlaying(AudioType type) = 0;
27
28 virtual void StartRecording(AudioType type) = 0;
29 virtual void StopRecording(AudioType type) = 0;
30
31 virtual void SetToken(AudioType type,
32 const std::string& url_safe_token) = 0;
33
34 virtual const std::string GetToken(AudioType type) const = 0;
35
36 virtual bool IsPlayingTokenHeard(AudioType type) const = 0;
37
38 virtual void SetTokenParams(AudioType type,
39 const TokenParameters& params) = 0;
40
41 static std::unique_ptr<Modem> Create();
42 };
43
44 } // namespace audio_modem
45
46 #endif // COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_
OLDNEW
« no previous file with comments | « components/audio_modem/public/audio_modem_types.h ('k') | components/audio_modem/public/whispernet_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698