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

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

Issue 10818017: contacts: Add GDataContactsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/struct/class/ in forward declaration (caught by clang) Created 8 years, 4 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 | « no previous file | chrome/browser/chromeos/gdata/gdata_contacts_service.h » ('j') | 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. 15 // All strings are UTF-8.
16 message Contact { 16 message Contact {
17 // Next ID to use: 15 17 // Next ID to use: 15
18 18
19 // Provider-assigned unique identifier. 19 // Provider-assigned unique identifier.
20 optional string provider_id = 1; 20 optional string provider_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 optional int64 update_time = 2; 24 optional int64 update_time = 2;
24 25
25 // Has the contact been deleted recently within the upstream provider? 26 // Has the contact been deleted recently within the upstream provider?
26 optional bool deleted = 3 [default = false]; 27 optional bool deleted = 3 [default = false];
27 28
28 // Taken from https://developers.google.com/gdata/docs/2.0/elements#gdName. 29 // Taken from https://developers.google.com/gdata/docs/2.0/elements#gdName.
29 optional string full_name = 4; 30 optional string full_name = 4;
30 optional string given_name = 5; 31 optional string given_name = 5;
31 optional string additional_name = 6; 32 optional string additional_name = 6;
32 optional string family_name = 7; 33 optional string family_name = 7;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ICQ = 6; 90 ICQ = 6;
90 JABBER = 7; 91 JABBER = 7;
91 OTHER = 8; 92 OTHER = 8;
92 } 93 }
93 optional Protocol protocol = 2 [default = OTHER]; 94 optional Protocol protocol = 2 [default = OTHER];
94 optional AddressType type = 3; 95 optional AddressType type = 3;
95 optional bool primary = 4 [default = false]; 96 optional bool primary = 4 [default = false];
96 } 97 }
97 repeated InstantMessagingAddress instant_messaging_addresses = 14; 98 repeated InstantMessagingAddress instant_messaging_addresses = 14;
98 } 99 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_contacts_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698