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

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

Issue 10829435: contacts: Strip Unicode byte order marks from strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use escaped bytes instead of utf-8 in test code 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 with Unicode byte order marks stripped out.
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 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
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 // Singleton message used by ContactDatabase to store update-related metadata. 101 // Singleton message used by ContactDatabase to store update-related metadata.
102 message UpdateMetadata { 102 message UpdateMetadata {
103 // Next ID to use: 2 103 // Next ID to use: 2
104 104
105 // Time at which the last successful update was started, as given by 105 // Time at which the last successful update was started, as given by
106 // base::Time::ToInternalValue(). 106 // base::Time::ToInternalValue().
107 optional int64 last_update_start_time = 1; 107 optional int64 last_update_start_time = 1;
108 } 108 }
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