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

Unified Diff: extensions/browser/api/cast_channel/cast_message_util.h

Issue 555283002: Create new class "CastTransport", which encapsulates the message read and write event loops. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed wez's feedback. Created 6 years, 3 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: extensions/browser/api/cast_channel/cast_message_util.h
diff --git a/extensions/browser/api/cast_channel/cast_message_util.h b/extensions/browser/api/cast_channel/cast_message_util.h
index 9080639fe736a755d4da03cd6979ceec947f0cea..eb1c86af01dd7584873ce954e5273ba79748fd85 100644
--- a/extensions/browser/api/cast_channel/cast_message_util.h
+++ b/extensions/browser/api/cast_channel/cast_message_util.h
@@ -19,6 +19,9 @@ struct MessageInfo;
bool MessageInfoToCastMessage(const MessageInfo& message,
CastMessage* message_proto);
+// Checks if the contents of |message_proto| are semantically valid.
+bool IsCastMessageValid(const CastMessage& message_proto);
+
// Fills |message| from |message_proto| and returns true on success.
bool CastMessageToMessageInfo(const CastMessage& message_proto,
MessageInfo* message);

Powered by Google App Engine
This is Rietveld 408576698