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 navigation messages. | 5 // Message definitions for browser navigation 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 16 matching lines...) Expand all Loading... |
27 // If the favicon of the page changed, this should include the serialized | 27 // If the favicon of the page changed, this should include the serialized |
28 // bitmap of the favicon. | 28 // bitmap of the favicon. |
29 optional bytes favicon = 2; | 29 optional bytes favicon = 2; |
30 | 30 |
31 // If the title changed, this will contain the new title string. | 31 // If the title changed, this will contain the new title string. |
32 optional string title = 3; | 32 optional string title = 3; |
33 } | 33 } |
34 | 34 |
35 message NavigationMessage { | 35 message NavigationMessage { |
36 enum Type { | 36 enum Type { |
| 37 UNKNOWN = 0; |
| 38 |
37 // Server => Client types. | 39 // Server => Client types. |
38 NAVIGATION_STATE_CHANGED = 1; | 40 NAVIGATION_STATE_CHANGED = 1; |
39 | 41 |
40 // Client => Server types. | 42 // Client => Server types. |
41 LOAD_URL = 2; | 43 LOAD_URL = 2; |
42 GO_BACK = 3; | 44 GO_BACK = 3; |
43 GO_FORWARD = 4; | 45 GO_FORWARD = 4; |
44 RELOAD = 5; | 46 RELOAD = 5; |
45 } | 47 } |
46 | 48 |
47 optional Type type = 1; | 49 optional Type type = 1; |
48 | 50 |
49 optional NavigationStateChangeMessage navigation_state_change = 1000; | 51 optional NavigationStateChangeMessage navigation_state_change = 1000; |
50 optional LoadUrlMessage load_url = 1001; | 52 optional LoadUrlMessage load_url = 1001; |
51 } | 53 } |
OLD | NEW |