| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package extensions.api.cast_channel; | 9 package cast_channel; |
| 10 | 10 |
| 11 message CastMessage { | 11 message CastMessage { |
| 12 // Always pass a version of the protocol for future compatibility | 12 // Always pass a version of the protocol for future compatibility |
| 13 // requirements. | 13 // requirements. |
| 14 enum ProtocolVersion { | 14 enum ProtocolVersion { CASTV2_1_0 = 0; } |
| 15 CASTV2_1_0 = 0; | |
| 16 } | |
| 17 required ProtocolVersion protocol_version = 1; | 15 required ProtocolVersion protocol_version = 1; |
| 18 | 16 |
| 19 // source and destination ids identify the origin and destination of the | 17 // source and destination ids identify the origin and destination of the |
| 20 // message. They are used to route messages between endpoints that share a | 18 // message. They are used to route messages between endpoints that share a |
| 21 // device-to-device channel. | 19 // device-to-device channel. |
| 22 // | 20 // |
| 23 // For messages between applications: | 21 // For messages between applications: |
| 24 // - The sender application id is a unique identifier generated on behalf of | 22 // - The sender application id is a unique identifier generated on behalf of |
| 25 // the sender application. | 23 // the sender application. |
| 26 // - The receiver id is always the the session id for the application. | 24 // - The receiver id is always the the session id for the application. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 required ErrorType error_type = 1; | 90 required ErrorType error_type = 1; |
| 93 } | 91 } |
| 94 | 92 |
| 95 message DeviceAuthMessage { | 93 message DeviceAuthMessage { |
| 96 // Request fields | 94 // Request fields |
| 97 optional AuthChallenge challenge = 1; | 95 optional AuthChallenge challenge = 1; |
| 98 // Response fields | 96 // Response fields |
| 99 optional AuthResponse response = 2; | 97 optional AuthResponse response = 2; |
| 100 optional AuthError error = 3; | 98 optional AuthError error = 3; |
| 101 } | 99 } |
| OLD | NEW |