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

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

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « components/copresence/public/copresence_delegate.h ('k') | components/copresence/rpc/rpc_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/public/whispernet_client.h
diff --git a/components/copresence/public/whispernet_client.h b/components/copresence/public/whispernet_client.h
index a4e530c28fa676c42f888110e217fd216b3bf44f..8dcb4a03d664ca6af682388b227863ab8114374c 100644
--- a/components/copresence/public/whispernet_client.h
+++ b/components/copresence/public/whispernet_client.h
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "components/copresence/public/copresence_constants.h"
namespace media {
class AudioBusRefCounted;
@@ -37,7 +38,7 @@ class WhispernetClient {
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&,
- bool,
+ AudioType,
const scoped_refptr<media::AudioBusRefCounted>&)>
SamplesCallback;
@@ -48,9 +49,9 @@ class WhispernetClient {
virtual void Shutdown() = 0;
// Fires an event to request a token encode.
- virtual void EncodeToken(const std::string& token, bool audible) = 0;
+ virtual void EncodeToken(const std::string& token, AudioType type) = 0;
// Fires an event to request a decode for the given samples.
- virtual void DecodeSamples(const std::string& samples) = 0;
+ virtual void DecodeSamples(AudioType type, const std::string& samples) = 0;
// Fires an event to request detection of a whispernet broadcast.
virtual void DetectBroadcast() = 0;
« no previous file with comments | « components/copresence/public/copresence_delegate.h ('k') | components/copresence/rpc/rpc_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698