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

Unified Diff: components/copresence/public/whispernet_client.h

Issue 704923002: Add polling and audio check to copresence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/public/whispernet_client.h
diff --git a/components/copresence/public/whispernet_client.h b/components/copresence/public/whispernet_client.h
index 8dcb4a03d664ca6af682388b227863ab8114374c..c089ce277abbf2583d22f9116b757e733bb0686e 100644
--- a/components/copresence/public/whispernet_client.h
+++ b/components/copresence/public/whispernet_client.h
@@ -19,29 +19,12 @@ class AudioBusRefCounted;
namespace copresence {
-struct AudioToken {
- AudioToken(const std::string& token, bool audible)
- : token(token), audible(audible) {}
- std::string token;
- bool audible;
-};
-
// The interface that the whispernet client needs to implement. These methods
// provide us the ability to use the audio medium in copresence. Currently since
// the only medium that copresence uses is audio, the implementation of this
// interface is required.
class WhispernetClient {
public:
- // Generic callback to indicate a boolean success or failure.
- typedef base::Callback<void(bool)> SuccessCallback;
- // Callback that returns detected tokens.
- typedef base::Callback<void(const std::vector<AudioToken>&)> TokensCallback;
- // Callback that returns encoded samples for a given token.
- typedef base::Callback<void(const std::string&,
- AudioType,
- const scoped_refptr<media::AudioBusRefCounted>&)>
- SamplesCallback;
-
// Initialize the whispernet client and call the callback when done. The
// parameter indicates whether we succeeded or failed.
virtual void Initialize(const SuccessCallback& init_callback) = 0;

Powered by Google App Engine
This is Rietveld 408576698