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 // Message definitions for browser control messages. | 5 // Message definitions for browser 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 |
11 message LoadUrlMessage { | |
12 optional string url = 1; | |
13 } | |
14 | |
15 message ControlMessage { | 11 message ControlMessage { |
16 enum Type { | 12 enum Type { |
17 // Client <=> Server types. | 13 // Client <=> Server types. |
18 CREATE_TAB = 1; | 14 CREATE_TAB = 1; |
19 CLOSE_TAB = 2; | 15 CLOSE_TAB = 2; |
20 LOAD_URL = 3; | |
21 | |
22 // Server => Client types. | |
23 // Client => Server types. | |
24 } | 16 } |
25 optional Type type = 1; | 17 optional Type type = 1; |
26 | |
27 optional LoadUrlMessage load_url = 1000; | |
28 } | 18 } |
OLD | NEW |