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

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

Issue 704923002: Add polling and audio check to copresence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/copresence_delegate.h
diff --git a/components/copresence/public/copresence_delegate.h b/components/copresence/public/copresence_delegate.h
index 64371d564d123cb6d73cba0ed46216f6fb8dc2c1..3a7aca65f0d0733ca58fed372b3461f25d0000f3 100644
--- a/components/copresence/public/copresence_delegate.h
+++ b/components/copresence/public/copresence_delegate.h
@@ -19,7 +19,9 @@ namespace copresence {
class Message;
class WhispernetClient;
-enum CopresenceStatus { SUCCESS, FAIL };
+// AUDIO_FAIL indicates that we weren't able to hear the audio token that
+// we were playing.
+enum CopresenceStatus { SUCCESS, FAIL, AUDIO_FAIL };
// Callback type to send a status.
typedef base::Callback<void(CopresenceStatus)> StatusCallback;
@@ -36,6 +38,8 @@ class CopresenceDelegate {
const std::string& subscription_id,
const std::vector<Message>& message) = 0;
+ virtual void HandleStatusUpdate(CopresenceStatus status) = 0;
+
// Thw URLRequestContextGetter must outlive the CopresenceManager.
virtual net::URLRequestContextGetter* GetRequestContext() const = 0;

Powered by Google App Engine
This is Rietveld 408576698