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

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..2c4cfe4f438b98c48fa3a912e4ed715b3d3ade49 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_;
+ bool use_audible_encoding_;
xiyuan 2014/08/08 20:40:54 nit: const bool if |use_audible_encoding_| does no
rkc 2014/08/08 21:24:37 Done.
// 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