| 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 // | |
| 5 // Message definitions for browser control messages. | |
| 6 | 4 |
| 7 syntax = "proto2"; | 5 syntax = "proto2"; |
| 8 | 6 |
| 9 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 10 | 8 |
| 11 import "size.proto"; | |
| 12 | |
| 13 package blimp; | 9 package blimp; |
| 14 | 10 |
| 15 message ControlMessage { | 11 // Contains Client->Engine information to establish a authenticated connection. |
| 12 message StartConnectionMessage { |
| 13 optional string client_token = 1; |
| 14 optional int32 protocol_version = 2; |
| 15 } |
| 16 |
| 17 message ProtocolControlMessage { |
| 16 enum Type { | 18 enum Type { |
| 17 UNKNOWN = 0; | 19 UNKNOWN = 0; |
| 18 | 20 |
| 19 // Client <=> Server types. | |
| 20 CREATE_TAB = 1; | |
| 21 CLOSE_TAB = 2; | |
| 22 | |
| 23 // Client => Server types. | 21 // Client => Server types. |
| 24 SIZE = 3; | 22 START_CONNECTION = 1; |
| 25 } | 23 } |
| 26 | 24 |
| 27 optional Type type = 1; | 25 optional Type type = 1; |
| 28 | 26 |
| 29 // Feature-specific messages follow. | 27 optional StartConnectionMessage start_connection = 1000; |
| 30 // Only one of these fields may be set per ControlMessage. | |
| 31 optional SizeMessage resize = 1000; | |
| 32 } | 28 } |
| OLD | NEW |