Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Side by Side Diff: chrome/browser/search/suggestions/proto/suggestions.proto

Issue 410673002: [Suggestions] Moving suggestions code to a new component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
5 syntax = "proto2";
6
7 option optimize_for = LITE_RUNTIME;
8
9 package suggestions;
10
11 // Providers are identified with an ID.
12 enum 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
23 message SuggestionsProfile {
24 repeated ChromeSuggestion suggestions = 1;
25 }
26
27 // The suggestions for this user, ordered from best to worst.
28 //
29 // Next tag: 6
30 message 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
47 // A list of URLs that should be filtered from the SuggestionsProfile.
48 //
49 // Next tag: 2
50 message SuggestionsBlacklist {
51 // URLs that make up the blacklist.
52 repeated string urls = 1;
53 }
54
55 // ThumbnailData contains the data to represent a website thumbnail.
56 //
57 // Next tag: 3
58 message ThumbnailData {
59 // The URL of the website represented by this Thumbnail.
60 optional string url = 1;
61
62 // Bitmap bytes, encoded as JPEG.
63 optional bytes data = 2;
64 }
OLDNEW
« no previous file with comments | « chrome/browser/search/suggestions/proto/BUILD.gn ('k') | chrome/browser/search/suggestions/suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698