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

Unified Diff: chrome/browser/policy/proto/device_management_backend.proto

Issue 10103029: Add device location reporting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nits addressed. Created 8 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
« no previous file with comments | « chrome/browser/policy/device_status_collector_unittest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/proto/device_management_backend.proto
diff --git a/chrome/browser/policy/proto/device_management_backend.proto b/chrome/browser/policy/proto/device_management_backend.proto
index b6396020cf0aa21fab52f869a56a905be6d4ae2a..0d0cfb9cc25b8a448dbfbbe7077caf093b1a27bc 100644
--- a/chrome/browser/policy/proto/device_management_backend.proto
+++ b/chrome/browser/policy/proto/device_management_backend.proto
@@ -264,6 +264,44 @@ message InstallableLaunch {
optional int64 total_count = 4;
}
+// Used to report the device location.
+message DeviceLocation {
+ enum ErrorCode {
+ ERROR_CODE_NONE = 0;
+ ERROR_CODE_POSITION_UNAVAILABLE = 1;
+ }
+
+ // Latitude in decimal degrees north (WGS84 coordinate frame).
+ optional double latitude = 1;
+
+ // Longitude in decimal degrees west (WGS84 coordinate frame).
+ optional double longitude = 2;
+
+ // Altitude in meters (above WGS84 datum).
+ optional double altitude = 3;
+
+ // Accuracy of horizontal position in meters.
+ optional double accuracy = 4;
+
+ // Accuracy of altitude in meters.
+ optional double altitude_accuracy = 5;
+
+ // Heading in decimal degrees clockwise from true north.
+ optional double heading = 6;
+
+ // Horizontal component of device velocity in meters per second.
+ optional double speed = 7;
+
+ // Time of position measurement in milisecons since Epoch in UTC time.
+ optional int64 timestamp = 8;
+
+ // Error code, see enum above.
+ optional ErrorCode error_code = 9;
+
+ // Human-readable error message.
+ optional string error_message = 10;
+}
+
// Report device level status.
message DeviceStatusReportRequest {
optional string os_version = 1;
@@ -281,6 +319,9 @@ message DeviceStatusReportRequest {
// A list of periods when the device was active, aggregated by day.
repeated ActiveTimePeriod active_period = 6;
+
+ // The device location.
+ optional DeviceLocation device_location = 7;
}
// Report session (a user on one device) level status.
« no previous file with comments | « chrome/browser/policy/device_status_collector_unittest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698