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 | |
15 // not. It might be text that should be turned into a search URL. | |
16 // Some example inputs: | |
17 // 1. google.com | |
18 // 2. www.wikipedia.org | |
19 // 3. dogs | |
20 optional string url = 1; | |
21 } | |
22 | |
23 message NavigationStateChangeMessage { | |
24 // If the URL changed, this will include the new URL string. | |
25 optional string url = 1; | |
26 | |
27 // If the favicon of the page changed, this should include the serialized | |
28 // bitmap of the favicon. | |
29 optional bytes favicon = 2; | |
30 | |
31 // If the title changed, this will contain the new title string. | |
32 optional string title = 3; | |
33 | |
34 // If the loading state changed, this will contain whether or not the page is | |
35 // loading. See WebContents::IsLoading() for more details. | |
36 // TODO(dtrainor): Figure out exactly what we want to send here. Loading may | |
37 // mean different things for different contexts (crbug.com/563626). | |
38 optional bool loading = 4; | |
39 | |
40 // Denotes whether the page load has been finished. While |loading| above will | |
41 // be true when any resources are being loaded from the network, | |
42 // |page_load_completed| is set to true when the initial page load has | |
43 // completed. | |
44 optional bool page_load_completed = 5; | |
45 } | |
46 | |
47 message NavigationMessage { | |
48 enum Type { | |
49 UNKNOWN = 0; | |
50 | |
51 // Server => Client types. | |
52 NAVIGATION_STATE_CHANGED = 1; | |
53 | |
54 // Client => Server types. | |
55 LOAD_URL = 2; | |
56 GO_BACK = 3; | |
57 GO_FORWARD = 4; | |
58 RELOAD = 5; | |
59 } | |
60 | |
61 optional Type type = 1; | |
62 | |
63 optional NavigationStateChangeMessage navigation_state_changed = 1000; | |
64 optional LoadUrlMessage load_url = 1001; | |
65 } | |
OLD | NEW |