1// Copyright 2014 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 5syntax = "proto2"; 6 7option optimize_for = LITE_RUNTIME; 8 9package suggestions; 10 11// Providers are identified with an ID. 12enum ProviderId { 13 SERVER0 = 0; 14 SERVER1 = 1; 15 SERVER2 = 2; 16 SERVER3 = 3; 17} 18 19// The SuggestionsProfile is a protobuf response from the server that contains 20// the list of suggestions to be presented to the user. 21// 22// Next tag: 2 23message SuggestionsProfile { 24 repeated ChromeSuggestion suggestions = 1; 25} 26 27// The suggestions for this user, ordered from best to worst. 28// 29// Next tag: 6 30message ChromeSuggestion { 31 // The URL of the suggestion. 32 optional string url = 1; 33 34 // Title of the suggestion. 35 optional string title = 2; 36 37 // The URL of the favicon associated with this page. 38 optional string favicon_url = 3; 39 40 // The URL of the thumbnail associated with this page. 41 optional string thumbnail = 4; 42 43 // The provider(s) responsible for this suggestion. 44 repeated ProviderId providers = 5; 45} 46