Chromium Code Reviews| Index: sync/protocol/device_info_specifics.proto |
| diff --git a/sync/protocol/device_info_specifics.proto b/sync/protocol/device_info_specifics.proto |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1c55e5921aa9cd62f3de9146bd731ea46faa8b23 |
| --- /dev/null |
| +++ b/sync/protocol/device_info_specifics.proto |
| @@ -0,0 +1,33 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +// |
| +// Sync protocol datatype extension for nigori keys. |
| + |
| +// Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
| +// any fields in this file. |
| + |
| +syntax = "proto2"; |
| + |
| +option optimize_for = LITE_RUNTIME; |
| +option retain_unknown_fields = true; |
| + |
| +package sync_pb; |
| + |
| +// Information about a device that is running a sync-enabled Chrome browser. |
| +// We are mapping the unique per-device cache guid to more specific information |
| +// about the device. |
| +message DeviceInfoSpecifics { |
|
rlarocque
2012/09/14 01:03:07
Feel free to question the contents of this proto.
|
| + optional string cache_guid = 1; |
|
Nicolas Zea
2012/09/13 00:45:55
comment about this field
rlarocque
2012/09/14 01:03:07
Done.
|
| + |
| + // The name of the device is dependent on the OS running the Chrome instance. |
| + // On a Chromebook this is "Chromebook", on Linux the distribution name, on |
|
Nicolas Zea
2012/09/13 00:45:55
I don't think it's necessarily worth enumerating a
rlarocque
2012/09/14 01:03:07
Done.
|
| + // Mac OSX the hadware model name and on Windows the computer name. |
| + optional string name = 2; |
|
Raz Mathias
2012/09/13 16:07:01
Is this field for UI display or programatic use?
rlarocque
2012/09/14 01:03:07
The value of this field comes from GetSessionNameS
|
| + |
| + // The platform of the device (ChromeOS, Linux, Mac, or Windows). |
| + optional string platform = 3; |
|
Nicolas Zea
2012/09/13 00:45:55
Note that we have an enum for the supported platfo
rlarocque
2012/09/14 01:03:07
That sounds reasonable. Will do.
|
| + |
|
Raz Mathias
2012/09/13 16:07:01
I presume nzea means the SessionHeader.DeviceType.
|
| + // The Chrome version of the sync-enabled Chrome browser. |
| + optional string chrome_version = 4; |
|
Raz Mathias
2012/09/13 16:07:01
We already have functions to extract this info ser
rlarocque
2012/09/14 01:03:07
The client will set this. It uses the same functi
|
| +} |