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 // Contains the BlimpMessage proto which frames all messages sent over Blimp | 5 // Contains the BlimpMessage proto which frames all messages sent over Blimp |
6 // subchannels. BlimpMessage protos are serialized and transmitted over the | 6 // subchannels. BlimpMessage protos are serialized and transmitted over the |
7 // wire to the Blimplet server. | 7 // wire to the Blimplet server. |
8 // | 8 // |
9 // Each BlimpMessage has a few identifying fields which provide the browser | 9 // Each BlimpMessage has a few identifying fields which provide the browser |
10 // session and tab ID as context. The message details are stored in a | 10 // session and tab ID as context. The message details are stored in a |
(...skipping 11 matching lines...) Expand all Loading... |
22 syntax = "proto2"; | 22 syntax = "proto2"; |
23 | 23 |
24 option optimize_for = LITE_RUNTIME; | 24 option optimize_for = LITE_RUNTIME; |
25 | 25 |
26 import "compositor.proto"; | 26 import "compositor.proto"; |
27 import "ime.proto"; | 27 import "ime.proto"; |
28 import "input.proto"; | 28 import "input.proto"; |
29 import "navigation.proto"; | 29 import "navigation.proto"; |
30 import "render_widget.proto"; | 30 import "render_widget.proto"; |
31 import "protocol_control.proto"; | 31 import "protocol_control.proto"; |
| 32 import "settings.proto"; |
32 import "tab_control.proto"; | 33 import "tab_control.proto"; |
33 | 34 |
34 package blimp; | 35 package blimp; |
35 | 36 |
36 message BlimpMessage { | 37 message BlimpMessage { |
37 enum Type { | 38 enum Type { |
38 UNKNOWN = 0; | 39 UNKNOWN = 0; |
39 TAB_CONTROL = 1; | 40 TAB_CONTROL = 1; |
40 NAVIGATION = 2; | 41 NAVIGATION = 2; |
41 RENDER_WIDGET = 3; | 42 RENDER_WIDGET = 3; |
42 INPUT = 4; | 43 INPUT = 4; |
43 COMPOSITOR = 5; | 44 COMPOSITOR = 5; |
44 PROTOCOL_CONTROL = 6; | 45 PROTOCOL_CONTROL = 6; |
45 IME = 7; | 46 IME = 7; |
| 47 SETTINGS = 8; |
46 } | 48 } |
47 | 49 |
48 // Sequence number of this message, used for message acknowledgement. | 50 // Sequence number of this message, used for message acknowledgement. |
49 // The sender may omit this value if it is exactly one higher than the | 51 // The sender may omit this value if it is exactly one higher than the |
50 // message that was previously sent. | 52 // message that was previously sent. |
51 optional int64 message_id = 1; | 53 optional int64 message_id = 1; |
52 | 54 |
53 // Identifies the feature type of this message. | 55 // Identifies the feature type of this message. |
54 // The feature-specific contents are contained in optional fields of the same | 56 // The feature-specific contents are contained in optional fields of the same |
55 // name (example: use |compositor| field for type=COMPOSITOR.) | 57 // name (example: use |compositor| field for type=COMPOSITOR.) |
(...skipping 14 matching lines...) Expand all Loading... |
70 // Only one of these fields may be set per BlimpMessage. | 72 // Only one of these fields may be set per BlimpMessage. |
71 // TODO(kmarshall): use a 'oneof' union when it's supported in Chromium. See | 73 // TODO(kmarshall): use a 'oneof' union when it's supported in Chromium. See |
72 // crbug.com/570371. | 74 // crbug.com/570371. |
73 optional TabControlMessage tab_control = 1000; | 75 optional TabControlMessage tab_control = 1000; |
74 optional NavigationMessage navigation = 1001; | 76 optional NavigationMessage navigation = 1001; |
75 optional RenderWidgetMessage render_widget = 1002; | 77 optional RenderWidgetMessage render_widget = 1002; |
76 optional InputMessage input = 1003; | 78 optional InputMessage input = 1003; |
77 optional CompositorMessage compositor = 1004; | 79 optional CompositorMessage compositor = 1004; |
78 optional ProtocolControlMessage protocol_control = 1005; | 80 optional ProtocolControlMessage protocol_control = 1005; |
79 optional ImeMessage ime = 1006; | 81 optional ImeMessage ime = 1006; |
| 82 optional SettingsMessage settings = 1007; |
80 } | 83 } |
81 | 84 |
OLD | NEW |