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 |
| 35 message NavigationMessage { |
| 36 enum Type { |
| 37 // Server => Client types. |
| 38 NAVIGATION_STATE_CHANGED = 1; |
| 39 |
| 40 // Client => Server types. |
| 41 LOAD_URL = 2; |
| 42 GO_BACK = 3; |
| 43 GO_FORWARD = 4; |
| 44 RELOAD = 5; |
| 45 } |
| 46 |
| 47 optional Type type = 1; |
| 48 |
| 49 optional NavigationStateChangeMessage navigation_state_change = 1000; |
| 50 optional LoadUrlMessage load_url = 1001; |
| 51 } |
OLD | NEW |