summaryrefslogtreecommitdiff
path: root/chromium/blimp/common/proto/protocol_control.proto
blob: 7dd1004490270137fa3ead2a340092cf8658cc8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto2";

option optimize_for = LITE_RUNTIME;

package blimp;

// Indicates the message-Id that the peer has most-recently processed.
message CheckpointAckMessage {
  optional int64 checkpoint_id = 1;
}

// Contains Client->Engine information to establish an authenticated connection.
message StartConnectionMessage {
  optional string client_token = 1;
  optional int32 protocol_version = 2;
}

message ProtocolControlMessage {
  enum Type {
    UNKNOWN = 0;

    // Client => Server types.
    START_CONNECTION = 1;

    // Server => Client types will start from 100.

    // Bi-directional types.
    CHECKPOINT_ACK = 200;
  }

  optional Type type = 1;

  optional StartConnectionMessage start_connection = 1001;
  optional CheckpointAckMessage checkpoint_ack = 1200;
}