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

Unified Diff: chromeos/network/network_util.h

Issue 2624843003: Add support for cellular geolocation (Closed)
Patch Set: Update device tests to use correct dict key Created 3 years, 10 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 | « chromeos/network/geolocation_handler_unittest.cc ('k') | chromeos/network/network_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_util.h
diff --git a/chromeos/network/network_util.h b/chromeos/network/network_util.h
index 37b1302f3a4e8f31ac467e2883b03364225cf69f..930f78d50b49b914c7c278310da83cfae6102e91 100644
--- a/chromeos/network/network_util.h
+++ b/chromeos/network/network_util.h
@@ -43,6 +43,20 @@ struct CHROMEOS_EXPORT WifiAccessPoint {
int channel; // Wifi channel number.
};
+// Struct for passing cellular location data
+// The age, signalStrength, and timingAdvance fields are currently unused:
+// https://developers.google.com/maps/documentation/geolocation/intro#cell_tower_object
+struct CHROMEOS_EXPORT CellTower {
+ CellTower();
+ CellTower(const CellTower& other);
+ ~CellTower();
+ std::string mcc; // The mobile country code if available
+ std::string mnc; // The mobile network code if available
+ std::string lac; // The location area code if available
+ std::string ci; // The cell id if availabe
+ base::Time timestamp; // Timestamp when this location was detected.
+};
+
// Struct for passing network scan result data.
struct CHROMEOS_EXPORT CellularScanResult {
CellularScanResult();
@@ -57,6 +71,7 @@ struct CHROMEOS_EXPORT CellularScanResult {
};
typedef std::vector<WifiAccessPoint> WifiAccessPointVector;
+typedef std::vector<CellTower> CellTowerVector;
// Describes whether there is an error and whether the error came from
// the local system or from the server implementing the connect
« no previous file with comments | « chromeos/network/geolocation_handler_unittest.cc ('k') | chromeos/network/network_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698