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_auth_token = 1; |
|
maniscalco
2016/08/30 18:05:09
I'm not so sure I'd change this proto field name s
Wez
2016/09/01 02:29:26
My preference would be to rename it here, for cons
maniscalco
2016/09/01 14:44:30
I'm fine with renaming it as well, but just so we'
CJ
2016/09/01 23:18:22
Acknowledged.
| |
| 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. | 22 // Indicates the reason for the peer ending the connection. |
| 23 message EndConnectionMessage { | 23 message EndConnectionMessage { |
| 24 enum Reason { | 24 enum Reason { |
| 25 UNKNOWN = 0; | 25 UNKNOWN = 0; |
| 26 AUTHENTICATION_FAILED = 1; | 26 AUTHENTICATION_FAILED = 1; |
| 27 PROTOCOL_MISMATCH = 2; | 27 PROTOCOL_MISMATCH = 2; |
| 28 }; | 28 }; |
| 29 optional Reason reason = 1; | 29 optional Reason reason = 1; |
| 30 } | 30 } |
| 31 | 31 |
| 32 message ProtocolControlMessage { | 32 message ProtocolControlMessage { |
| 33 oneof connection_message { | 33 oneof connection_message { |
| 34 // Client => Server types. | 34 // Client => Server types. |
| 35 StartConnectionMessage start_connection = 41; | 35 StartConnectionMessage start_connection = 41; |
| 36 | 36 |
| 37 // Bi-directional types. | 37 // Bi-directional types. |
| 38 CheckpointAckMessage checkpoint_ack = 42; | 38 CheckpointAckMessage checkpoint_ack = 42; |
| 39 EndConnectionMessage end_connection = 43; | 39 EndConnectionMessage end_connection = 43; |
| 40 } | 40 } |
| 41 } | 41 } |
| OLD | NEW |