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

Unified Diff: components/onc/onc_constants.cc

Issue 2818593003: [CrOS Tether] Add tether network properties (battery percentage, carrier, and signal strength) to t… (Closed)
Patch Set: Ran git cl format. Created 3 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 | « components/onc/onc_constants.h ('k') | extensions/common/api/networking_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/onc/onc_constants.cc
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc
index ef314226ed08b62f633a0b64ed612be616cd2f5e..d3e68e5863ad8ae681bffc01c7496c15e04b3c02 100644
--- a/components/onc/onc_constants.cc
+++ b/components/onc/onc_constants.cc
@@ -59,6 +59,7 @@ const char kSourceUser[] = "User";
const char kSourceUserPolicy[] = "UserPolicy";
const char kSource[] = "Source";
const char kStaticIPConfig[] = "StaticIPConfig";
+const char kTether[] = "Tether";
const char kType[] = "Type";
const char kVPN[] = "VPN";
const char kWiFi[] = "WiFi";
@@ -68,6 +69,10 @@ std::string CellularProperty(const std::string& property) {
return std::string(kCellular) + "." + property;
}
+std::string TetherProperty(const std::string& property) {
+ return std::string(kTether) + "." + property;
+}
+
std::string VpnProperty(const std::string& property) {
return std::string(kVPN) + "." + property;
}
@@ -82,6 +87,7 @@ namespace network_type {
const char kAllTypes[] = "All";
const char kCellular[] = "Cellular";
const char kEthernet[] = "Ethernet";
+const char kTether[] = "Tether";
const char kVPN[] = "VPN";
const char kWiFi[] = "WiFi";
const char kWimax[] = "WiMAX";
@@ -188,6 +194,12 @@ const char kEAP[] = "EAP";
const char k8021X[] = "8021X";
} // namespace ethernet
+namespace tether {
+const char kBatteryPercentage[] = "BatteryPercentage";
+const char kCarrier[] = "Carrier";
+const char kSignalStrength[] = "SignalStrength";
+} // namespace tether
+
namespace ipconfig {
const char kGateway[] = "Gateway";
const char kIPAddress[] = "IPAddress";
« no previous file with comments | « components/onc/onc_constants.h ('k') | extensions/common/api/networking_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698