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

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

Issue 453793002: Add audible support to the copresence API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_list.h
diff --git a/components/copresence/handlers/audio/audio_directive_list.h b/components/copresence/handlers/audio/audio_directive_list.h
index b190ea7f143709f44c6d88f8437ec041b7a0c05b..b94dec777bee06dcddd9632c74a3348aab48e8b9 100644
--- a/components/copresence/handlers/audio/audio_directive_list.h
+++ b/components/copresence/handlers/audio/audio_directive_list.h
@@ -55,11 +55,12 @@ class AudioDirectiveList {
typedef base::Callback<
void(const std::string&, const scoped_refptr<media::AudioBusRefCounted>&)>
SamplesCallback;
- typedef base::Callback<void(const std::string&, const SamplesCallback&)>
+ typedef base::Callback<void(const std::string&, bool, const SamplesCallback&)>
EncodeTokenCallback;
AudioDirectiveList(const EncodeTokenCallback& encode_token_callback,
- const base::Closure& token_added_callback);
+ const base::Closure& token_added_callback,
+ bool use_audible_encoding);
virtual ~AudioDirectiveList();
// Adds a token to the token queue, after getting its corresponding samples
@@ -106,8 +107,8 @@ class AudioDirectiveList {
AudioDirectiveQueue active_receive_tokens_;
EncodeTokenCallback encode_token_callback_;
-
base::Closure token_added_callback_;
+ const bool use_audible_encoding_;
// Cache that holds the encoded samples. After reaching its limit, the cache
// expires the oldest samples first.

Powered by Google App Engine
This is Rietveld 408576698