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

Unified Diff: blimp/common/proto/protocol_control.proto

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android to use GetVersionNumber() Created 4 years, 7 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 | « blimp/common/create_blimp_message_unittest.cc ('k') | blimp/common/protocol_version.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/proto/protocol_control.proto
diff --git a/blimp/common/proto/protocol_control.proto b/blimp/common/proto/protocol_control.proto
index 3e743a800b19a84e24db837ad537102e314460c7..f2f705605a441e4b08821bdc5c0d8293ec85d149 100644
--- a/blimp/common/proto/protocol_control.proto
+++ b/blimp/common/proto/protocol_control.proto
@@ -19,12 +19,23 @@ message StartConnectionMessage {
optional int32 protocol_version = 2;
}
+// Indicates the reason for the peer ending the connection.
+message EndConnectionMessage {
+ enum Reason {
+ UNKNOWN = 0;
+ AUTHENTICATION_FAILED = 1;
+ PROTOCOL_MISMATCH = 2;
+ };
+ optional Reason reason = 1;
+}
+
message ProtocolControlMessage {
oneof connection_message {
// Client => Server types.
StartConnectionMessage start_connection = 41;
- // Server => Client types.
+ // Bi-directional types.
CheckpointAckMessage checkpoint_ack = 42;
+ EndConnectionMessage end_connection = 43;
}
}
« no previous file with comments | « blimp/common/create_blimp_message_unittest.cc ('k') | blimp/common/protocol_version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698