Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package blimp; | 9 package blimp; |
| 10 | 10 |
| 11 // Indicates the message-Id that the peer has most-recently processed. | 11 // Indicates the message-Id that the peer has most-recently processed. |
| 12 message CheckpointAckMessage { | 12 message CheckpointAckMessage { |
| 13 optional int64 checkpoint_id = 1; | 13 optional int64 checkpoint_id = 1; |
| 14 } | 14 } |
| 15 | 15 |
| 16 // Contains Client->Engine information to establish an authenticated connection. | 16 // Contains Client->Engine information to establish an authenticated connection. |
| 17 message StartConnectionMessage { | 17 message StartConnectionMessage { |
| 18 optional string client_token = 1; | 18 optional string client_token = 1; |
| 19 optional int32 protocol_version = 2; | 19 optional int32 protocol_version = 2; |
| 20 } | 20 } |
| 21 | 21 |
| 22 // Indicates the reason for the peer ending the connection. | |
| 23 message EndConnectionMessage { | |
| 24 enum Reason { | |
| 25 UNKNOWN = 0; | |
| 26 AUTHENTICATION_FAILED = 1; | |
| 27 PROTOCOL_MISMATCH = 2; | |
| 28 }; | |
| 29 optional Reason reason = 1; | |
| 30 } | |
| 31 | |
| 22 message ProtocolControlMessage { | 32 message ProtocolControlMessage { |
| 23 enum Type { | 33 enum Type { |
| 24 UNKNOWN = 0; | 34 UNKNOWN = 0; |
| 25 | 35 |
| 26 // Client => Server types. | 36 // Client => Server types. |
| 27 START_CONNECTION = 1; | 37 START_CONNECTION = 1; |
| 28 | 38 |
| 29 // Server => Client types will start from 100. | 39 // Server => Client types will start from 100. |
| 30 | 40 |
| 31 // Bi-directional types. | 41 // Bi-directional types. |
| 32 CHECKPOINT_ACK = 200; | 42 CHECKPOINT_ACK = 200; |
| 43 END_CONNECTION = 201; | |
|
Sriram
2016/04/22 21:07:34
Shouldn't this be Server -> Client type instead of
| |
| 33 } | 44 } |
| 34 | 45 |
| 35 optional Type type = 1; | 46 optional Type type = 1; |
| 36 | 47 |
| 37 optional StartConnectionMessage start_connection = 1001; | 48 optional StartConnectionMessage start_connection = 1001; |
| 49 | |
| 38 optional CheckpointAckMessage checkpoint_ack = 1200; | 50 optional CheckpointAckMessage checkpoint_ack = 1200; |
| 51 optional EndConnectionMessage end_connection = 1201; | |
| 39 } | 52 } |
| OLD | NEW |