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

Side by Side Diff: chrome/browser/chromeos/contacts/contact.proto

Issue 10916304: autocomplete: Make ContactProvider rank contacts by affinity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: improve error messages Created 8 years, 3 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
« no previous file with comments | « chrome/browser/autocomplete/contact_provider_chromeos_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Protocol buffer definitions for the user's contacts. 5 // Protocol buffer definitions for the user's contacts.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
11 package contacts; 11 package contacts;
12 12
13 // A contact, roughly based on the GData Contact kind: 13 // A contact, roughly based on the GData Contact kind:
14 // https://developers.google.com/gdata/docs/2.0/elements#gdContactKind 14 // https://developers.google.com/gdata/docs/2.0/elements#gdContactKind
15 // All strings are UTF-8 with Unicode byte order marks stripped out. 15 // All strings are UTF-8 with Unicode byte order marks stripped out.
16 message Contact { 16 message Contact {
17 // Next ID to use: 15 17 // Next ID to use: 16
18 18
19 // Provider-assigned unique identifier. 19 // Provider-assigned unique identifier.
20 optional string contact_id = 1; 20 optional string contact_id = 1;
21 21
22 // Last time at which this contact was updated within the upstream provider, 22 // Last time at which this contact was updated within the upstream provider,
23 // as given by base::Time::ToInternalValue(). 23 // as given by base::Time::ToInternalValue().
24 optional int64 update_time = 2; 24 optional int64 update_time = 2;
25 25
26 // Has the contact been deleted recently within the upstream provider? 26 // Has the contact been deleted recently within the upstream provider?
27 optional bool deleted = 3 [default = false]; 27 optional bool deleted = 3 [default = false];
28 28
29 // Affinity between the user and this contact, in the range [0.0, 1.0].
30 // Unset if the affinity is unknown.
31 optional float affinity = 15;
32
29 // Taken from https://developers.google.com/gdata/docs/2.0/elements#gdName. 33 // Taken from https://developers.google.com/gdata/docs/2.0/elements#gdName.
30 optional string full_name = 4; 34 optional string full_name = 4;
31 optional string given_name = 5; 35 optional string given_name = 5;
32 optional string additional_name = 6; 36 optional string additional_name = 6;
33 optional string family_name = 7; 37 optional string family_name = 7;
34 optional string name_prefix = 8; 38 optional string name_prefix = 8;
35 optional string name_suffix = 9; 39 optional string name_suffix = 9;
36 40
37 // Raw photo data as supplied by the provider. This data is untrusted and 41 // Raw photo data as supplied by the provider. This data is untrusted and
38 // must be decoded within a sandbox by e.g. ImageDecoder before being used. 42 // must be decoded within a sandbox by e.g. ImageDecoder before being used.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 103 }
100 104
101 // Singleton message used by ContactDatabase to store update-related metadata. 105 // Singleton message used by ContactDatabase to store update-related metadata.
102 message UpdateMetadata { 106 message UpdateMetadata {
103 // Next ID to use: 2 107 // Next ID to use: 2
104 108
105 // Time at which the last successful update was started, as given by 109 // Time at which the last successful update was started, as given by
106 // base::Time::ToInternalValue(). 110 // base::Time::ToInternalValue().
107 optional int64 last_update_start_time = 1; 111 optional int64 last_update_start_time = 1;
108 } 112 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/contact_provider_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698