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

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

Issue 813553002: Adding support for pre-sent messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@state
Patch Set: Fixing tests Created 5 years, 11 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/copresence_constants.h
diff --git a/components/copresence/public/copresence_constants.h b/components/copresence/public/copresence_constants.h
index ae75f77d8f5597e7e0c24d10a4a2430e5d2d4571..8efa2d8f522969b548e82d2b5785ba76ab516421 100644
--- a/components/copresence/public/copresence_constants.h
+++ b/components/copresence/public/copresence_constants.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_H_
#define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_H_
+#include <google/protobuf/repeated_field.h>
+
#include <string>
#include <vector>
@@ -20,6 +22,7 @@ class AudioBusRefCounted;
namespace copresence {
class Directive;
+class SubscribedMessage;
// Audio constants. Currently used from the AudioPlayer/AudioRecorder.
// TODO(rkc): Make these values configurable then remove them from here.
@@ -72,6 +75,10 @@ using SamplesCallback =
// Callback to pass a list of directives back to CopresenceState.
using DirectivesCallback = base::Callback<void(const std::vector<Directive>&)>;
+// Callback to pass around a list of SubscribedMessages.
+using MessagesCallback = base::Callback<void(
+ const google::protobuf::RepeatedPtrField<SubscribedMessage>&)>;
+
} // namespace copresence
#endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698