OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Protocol for control messages. | 5 // Protocol for control messages. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 optional string client_name = 1; | 59 optional string client_name = 1; |
60 } | 60 } |
61 | 61 |
62 message PairingResponse { | 62 message PairingResponse { |
63 // Unique identifier for this client. | 63 // Unique identifier for this client. |
64 optional string client_id = 1; | 64 optional string client_id = 1; |
65 | 65 |
66 // Shared secret for this client. | 66 // Shared secret for this client. |
67 optional string shared_secret = 2; | 67 optional string shared_secret = 2; |
68 } | 68 } |
| 69 |
| 70 message ExtensionMessage { |
| 71 // The message type. This is used to dispatch the message to the correct |
| 72 // recipient. |
| 73 optional string type = 1; |
| 74 |
| 75 // String-encoded message data. The client and host must agree on the encoding |
| 76 // for each message type; different message types need not shared the same |
| 77 // encoding. |
| 78 optional string data = 2; |
| 79 } |
OLD | NEW |