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

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

Issue 460743004: Improve audible token detection. (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 b94dec777bee06dcddd9632c74a3348aab48e8b9..d97a54915e0c6afb472b06e047c3e43e2dbda285 100644
--- a/components/copresence/handlers/audio/audio_directive_list.h
+++ b/components/copresence/handlers/audio/audio_directive_list.h
@@ -52,8 +52,9 @@ struct AudioDirective {
// classes from it.
class AudioDirectiveList {
public:
- typedef base::Callback<
- void(const std::string&, const scoped_refptr<media::AudioBusRefCounted>&)>
+ typedef base::Callback<void(const std::string&,
+ bool,
+ const scoped_refptr<media::AudioBusRefCounted>&)>
SamplesCallback;
typedef base::Callback<void(const std::string&, bool, const SamplesCallback&)>
EncodeTokenCallback;
@@ -78,6 +79,7 @@ class AudioDirectiveList {
// This is the method that the whispernet client needs to call to return
// samples to us.
void OnTokenEncoded(const std::string& token,
+ bool audible,
const scoped_refptr<media::AudioBusRefCounted>& samples);
private:

Powered by Google App Engine
This is Rietveld 408576698