OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 // | |
5 // Message definitions for server-originating browser control messages. | |
6 // | |
7 // Current definitions are just placeholders and are NOT final. | |
8 // Feel free to modify this interface as necessary during feature work. | |
9 | |
10 syntax = "proto2"; | |
11 | |
12 option optimize_for = LITE_RUNTIME; | |
13 | |
14 message StatusArgs { | |
15 optional string url = 1; | |
16 optional int32 loading_progress = 2; | |
17 // Add error code, error message, status strings, etc. | |
18 } | |
19 | |
20 message ResetSessionArgs { | |
21 } | |
22 | |
23 message ErrorArgs { | |
24 enum ErrorCode { | |
25 UNKNOWN = 1; | |
26 UNRESPONSIVE = 2; | |
27 SERVER_ERROR = 3; | |
28 } | |
29 | |
30 optional ErrorCode error_code = 1; | |
31 optional int32 server_error_code = 2; | |
32 } | |
33 | |
34 message ServerControlMessage { | |
35 enum Type { | |
36 ERROR = 1; | |
37 STATUS = 2; | |
38 } | |
39 optional Type type = 1; | |
40 | |
41 optional ErrorArgs error = 1000; | |
42 optional StatusArgs status = 1001; | |
43 } | |
OLD | NEW |