| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // then the message may have originated from a discarded session and can be | 59 // then the message may have originated from a discarded session and can be |
| 60 // safely ignored. | 60 // safely ignored. |
| 61 optional int32 session_id = 3; | 61 optional int32 session_id = 3; |
| 62 | 62 |
| 63 // ID of the tab that is referenced by this message. | 63 // ID of the tab that is referenced by this message. |
| 64 // Messages that are tab-agnostic may leave this field unset. | 64 // Messages that are tab-agnostic may leave this field unset. |
| 65 optional int32 target_tab_id = 4; | 65 optional int32 target_tab_id = 4; |
| 66 | 66 |
| 67 // Feature-specific messages follow. | 67 // Feature-specific messages follow. |
| 68 // Only one of these fields may be set per BlimpMessage. | 68 // Only one of these fields may be set per BlimpMessage. |
| 69 // TODO(kmarshall): use a 'oneof' union when it's supported in Chromium. | 69 // TODO(kmarshall): use a 'oneof' union when it's supported in Chromium. See |
| 70 // crbug.com/570371. |
| 70 optional ControlMessage control = 1000; | 71 optional ControlMessage control = 1000; |
| 71 optional NavigationMessage navigation = 1001; | 72 optional NavigationMessage navigation = 1001; |
| 72 optional RenderWidgetMessage render_widget = 1002; | 73 optional RenderWidgetMessage render_widget = 1002; |
| 73 optional InputMessage input = 1003; | 74 optional InputMessage input = 1003; |
| 74 optional CompositorMessage compositor = 1004; | 75 optional CompositorMessage compositor = 1004; |
| 75 optional ProtocolControlMessage protocol_control = 1005; | 76 optional ProtocolControlMessage protocol_control = 1005; |
| 76 } | 77 } |
| 77 | 78 |
| OLD | NEW |