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

Unified Diff: chrome/common/metrics/proto/system_profile.proto

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only include ChromeOS specific header on ChromeOS Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/metrics/proto/system_profile.proto
diff --git a/chrome/common/metrics/proto/system_profile.proto b/chrome/common/metrics/proto/system_profile.proto
index 38cbc14b054c6bb008d9f039f0e5b421ebbf502a..377542227eaa80d8295de42c9c7a064f9d9e94ff 100644
--- a/chrome/common/metrics/proto/system_profile.proto
+++ b/chrome/common/metrics/proto/system_profile.proto
@@ -11,7 +11,7 @@ option optimize_for = LITE_RUNTIME;
package metrics;
-// Next tag: 14
+// Next tag: 15
message SystemProfileProto {
// The time when the client was compiled/linked, in seconds since the epoch.
optional int64 build_timestamp = 1;
@@ -139,12 +139,12 @@ message SystemProfileProto {
optional float overall_score = 3;
}
optional PerformanceStatistics performance_statistics = 5;
-
- // The GL_VENDOR string. An example of a gl_vendor string is
+
+ // The GL_VENDOR string. An example of a gl_vendor string is
// "Imagination Technologies". "" if we are not using OpenGL.
optional string gl_vendor = 6;
-
- // The GL_RENDERER string. An example of a gl_renderer string is
+
+ // The GL_RENDERER string. An example of a gl_renderer string is
// "PowerVR SGX 540". "" if we are not using OpenGL.
optional string gl_renderer = 7;
}
@@ -364,4 +364,52 @@ message SystemProfileProto {
optional fixed32 group_id = 2;
}
repeated FieldTrial field_trial = 9;
+
+ // Information about Bluetooth devices paired with the system.
+ message Bluetooth {
+ // Whether Bluetooth is present on this system.
+ optional bool is_present = 1;
+
+ // Whether Bluetooth is enabled on this system.
+ optional bool is_enabled = 2;
+
+ // Describes a paired device.
+ message PairedDevice {
+ // Assigned class of the device.
Ilya Sherman 2013/04/20 04:54:02 Please document what the class is, i.e. how to int
keybuk 2013/04/22 19:30:51 Done.
+ optional uint32 bluetooth_class = 1;
+
+ // Decoded device type.
+ enum Type {
+ DEVICE_UNKNOWN = 0;
+ DEVICE_COMPUTER = 1;
+ DEVICE_PHONE = 2;
+ DEVICE_MODEM = 3;
+ DEVICE_AUDIO = 4;
+ DEVICE_CAR_AUDIO = 5;
+ DEVICE_VIDEO = 6;
+ DEVICE_PERIPHERAL = 7;
+ DEVICE_JOYSTICK = 8;
+ DEVICE_GAMEPAD = 9;
+ DEVICE_KEYBOARD = 10;
+ DEVICE_MOUSE = 11;
+ DEVICE_TABLET = 12;
+ DEVICE_KEYBOARD_MOUSE_COMBO = 13;
+ }
+ optional Type type = 2;
+
+ // Vendor prefix of the Bluetooth address.
Ilya Sherman 2013/04/20 04:54:02 Please document what this string looks like. Also
keybuk 2013/04/22 19:30:51 Done; encoded as a uint32_t (I couldn't see a usef
Ilya Sherman 2013/04/23 00:09:43 Yeah, I'm likewise not aware of any cleaner way to
keybuk 2013/04/23 00:41:41 Sure - I had a preliminary "no problem" from the p
+ optional string vendor_prefix = 4;
+
+ // Vendor ID, where available.
+ optional uint32 vendor_id = 5;
+
+ // Product ID, where available.
+ optional uint32 product_id = 6;
+
+ // Device Release Number, where available.
+ optional uint32 bcd_device = 7;
+ }
+ repeated PairedDevice paired_device = 3;
+ }
+ optional Bluetooth bluetooth = 14;
Ilya Sherman 2013/04/20 04:54:02 This tag is actually already being used by the int
keybuk 2013/04/22 19:30:51 Done.
}

Powered by Google App Engine
This is Rietveld 408576698