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 browser navigation messages. | |
6 | |
7 syntax = "proto2"; | |
8 | |
9 option optimize_for = LITE_RUNTIME; | |
10 | |
11 package blimp; | |
12 | |
13 message LoadUrlMessage { | |
14 // The text to generate and create a URL from. This might be a URL or might | |
haibinlu
2015/11/09 18:58:43
could you elaborate? maybe give some examples.
David Trainor- moved to gerrit
2015/11/09 19:27:17
I'll put some examples here. Thanks :).
| |
15 // not. It might be text that should be turned into a search URL. | |
16 optional string url = 1; | |
17 } | |
18 | |
19 message NavigationStateChangeMessage { | |
20 // If the URL changed, this will include the new URL string. | |
21 optional string url = 1; | |
22 | |
23 // If the favicon of the page changed, this should include the serialized | |
24 // bitmap of the favicon. | |
25 optional bytes favicon = 2; | |
26 | |
27 // If the title changed, this will contain the new title string. | |
28 optional string title = 3; | |
29 } | |
30 | |
31 message NavigationMessage { | |
32 enum Type { | |
33 // Server => Client types. | |
34 NAVIGATION_STATE_CHANGED = 1; | |
35 | |
36 // Client => Server types. | |
37 LOAD_URL = 2; | |
38 GO_BACK = 3; | |
haibinlu
2015/11/09 18:58:43
add FORWARD too?
David Trainor- moved to gerrit
2015/11/09 19:27:17
Good point, although I'm not going to bother addin
| |
39 RELOAD = 4; | |
40 } | |
41 | |
42 optional Type type = 1; | |
43 | |
44 optional NavigationStateChangeMessage navigation_state_change = 1000; | |
45 optional LoadUrlMessage load_url = 1001; | |
46 } | |
OLD | NEW |