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

Unified Diff: chrome/browser/copresence/chrome_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 | « no previous file | chrome/browser/copresence/chrome_whispernet_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/copresence/chrome_whispernet_client.h
diff --git a/chrome/browser/copresence/chrome_whispernet_client.h b/chrome/browser/copresence/chrome_whispernet_client.h
index 3cdcf4b2d1fa92d4c8eb53f9d2d29ac764822622..ab862741fd29811c43732f56da7375729cb638d2 100644
--- a/chrome/browser/copresence/chrome_whispernet_client.h
+++ b/chrome/browser/copresence/chrome_whispernet_client.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/macros.h"
+#include "components/copresence/public/copresence_constants.h"
#include "components/copresence/public/whispernet_client.h"
namespace content {
@@ -30,7 +31,7 @@ class AudioBusRefCounted;
// This class is responsible for communication with our ledger_proxy extension
// that talks to the whispernet audio library.
-class ChromeWhispernetClient : public copresence::WhispernetClient {
+class ChromeWhispernetClient final : public copresence::WhispernetClient {
public:
// The browser context needs to outlive this class.
explicit ChromeWhispernetClient(content::BrowserContext* browser_context);
@@ -40,8 +41,10 @@ class ChromeWhispernetClient : public copresence::WhispernetClient {
void Initialize(const SuccessCallback& init_callback) override;
void Shutdown() override;
- void EncodeToken(const std::string& token, bool audible) override;
- void DecodeSamples(const std::string& samples) override;
+ void EncodeToken(const std::string& token,
+ copresence::AudioType type) override;
+ void DecodeSamples(copresence::AudioType type,
+ const std::string& samples) override;
void DetectBroadcast() override;
void RegisterTokensCallback(const TokensCallback& tokens_callback) override;
« no previous file with comments | « no previous file | chrome/browser/copresence/chrome_whispernet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698