aboutsummaryrefslogtreecommitdiff
path: root/cast/common/channel/message_util.h
diff options
context:
space:
mode:
authorJordan Bayles <jophba@chromium.org>2021-04-21 15:08:09 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-21 23:22:55 +0000
commitf71d249a402d2e1f5a6dfd9484263058303ee7df (patch)
treec112d2aecddf8c3ef092635df573dd91f9859513 /cast/common/channel/message_util.h
parent9709e9336d093dd2f6147012e88edf967a6e183f (diff)
downloadopenscreen-f71d249a402d2e1f5a6dfd9484263058303ee7df.tar.gz
Cleanup TODOs from @miu
This patch removes all remaining TODOs from the now-departed @miu, either reassigning them to jophba, or for the majority, just implementing the fix directly. Change-Id: I73c21f577bf115cf37ec880fac54eef1555de7c5 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2831302 Commit-Queue: Jordan Bayles <jophba@chromium.org> Reviewed-by: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast/common/channel/message_util.h')
-rw-r--r--cast/common/channel/message_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cast/common/channel/message_util.h b/cast/common/channel/message_util.h
index 8e8fe823..418e7ad6 100644
--- a/cast/common/channel/message_util.h
+++ b/cast/common/channel/message_util.h
@@ -10,6 +10,10 @@
#include "absl/strings/string_view.h"
#include "cast/common/channel/proto/cast_channel.pb.h"
+namespace Json {
+class Value;
+}
+
namespace openscreen {
namespace cast {
@@ -242,6 +246,8 @@ inline bool IsTransportNamespace(absl::string_view namespace_) {
// |prefix| of "sender" will result in a string like "sender-12345".
std::string MakeUniqueSessionId(const char* prefix);
+// Returns true if the type field in |object| is set to the given |type|.
+bool HasType(const Json::Value& object, CastMessageType type);
} // namespace cast
} // namespace openscreen