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

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

Issue 461803003: Stop playing/recording when not needed. (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/public/whispernet_client.h
diff --git a/components/copresence/public/whispernet_client.h b/components/copresence/public/whispernet_client.h
index e800d85edc8bada536293f98928f751b3197169b..a4e530c28fa676c42f888110e217fd216b3bf44f 100644
--- a/components/copresence/public/whispernet_client.h
+++ b/components/copresence/public/whispernet_client.h
@@ -18,8 +18,8 @@ class AudioBusRefCounted;
namespace copresence {
-struct FullToken {
- FullToken(const std::string& token, bool audible)
+struct AudioToken {
+ AudioToken(const std::string& token, bool audible)
: token(token), audible(audible) {}
std::string token;
bool audible;
@@ -34,7 +34,7 @@ class WhispernetClient {
// 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<FullToken>&)> TokensCallback;
+ 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,
@@ -70,7 +70,7 @@ class WhispernetClient {
virtual SuccessCallback GetDetectBroadcastCallback() = 0;
virtual SuccessCallback GetInitializedCallback() = 0;
- virtual ~WhispernetClient() {};
+ virtual ~WhispernetClient() {}
};
} // namespace copresence

Powered by Google App Engine
This is Rietveld 408576698