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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/onc/onc_constants.h" 5 #include "components/onc/onc_constants.h"
6 6
7 // Constants for ONC properties. 7 // Constants for ONC properties.
8 namespace onc { 8 namespace onc {
9 9
10 const char kAugmentationActiveSetting[] = "Active"; 10 const char kAugmentationActiveSetting[] = "Active";
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const char kProxySettings[] = "ProxySettings"; 52 const char kProxySettings[] = "ProxySettings";
53 const char kRestrictedConnectivity[] = "RestrictedConnectivity"; 53 const char kRestrictedConnectivity[] = "RestrictedConnectivity";
54 const char kSavedIPConfig[] = "SavedIPConfig"; 54 const char kSavedIPConfig[] = "SavedIPConfig";
55 const char kSourceDevice[] = "Device"; 55 const char kSourceDevice[] = "Device";
56 const char kSourceDevicePolicy[] = "DevicePolicy"; 56 const char kSourceDevicePolicy[] = "DevicePolicy";
57 const char kSourceNone[] = "None"; 57 const char kSourceNone[] = "None";
58 const char kSourceUser[] = "User"; 58 const char kSourceUser[] = "User";
59 const char kSourceUserPolicy[] = "UserPolicy"; 59 const char kSourceUserPolicy[] = "UserPolicy";
60 const char kSource[] = "Source"; 60 const char kSource[] = "Source";
61 const char kStaticIPConfig[] = "StaticIPConfig"; 61 const char kStaticIPConfig[] = "StaticIPConfig";
62 const char kTether[] = "Tether";
62 const char kType[] = "Type"; 63 const char kType[] = "Type";
63 const char kVPN[] = "VPN"; 64 const char kVPN[] = "VPN";
64 const char kWiFi[] = "WiFi"; 65 const char kWiFi[] = "WiFi";
65 const char kWimax[] = "WiMAX"; 66 const char kWimax[] = "WiMAX";
66 67
67 std::string CellularProperty(const std::string& property) { 68 std::string CellularProperty(const std::string& property) {
68 return std::string(kCellular) + "." + property; 69 return std::string(kCellular) + "." + property;
69 } 70 }
70 71
72 std::string TetherProperty(const std::string& property) {
73 return std::string(kTether) + "." + property;
74 }
75
71 std::string VpnProperty(const std::string& property) { 76 std::string VpnProperty(const std::string& property) {
72 return std::string(kVPN) + "." + property; 77 return std::string(kVPN) + "." + property;
73 } 78 }
74 79
75 std::string WifiProperty(const std::string& property) { 80 std::string WifiProperty(const std::string& property) {
76 return std::string(kWiFi) + "." + property; 81 return std::string(kWiFi) + "." + property;
77 } 82 }
78 83
79 } // namespace network_config 84 } // namespace network_config
80 85
81 namespace network_type { 86 namespace network_type {
82 const char kAllTypes[] = "All"; 87 const char kAllTypes[] = "All";
83 const char kCellular[] = "Cellular"; 88 const char kCellular[] = "Cellular";
84 const char kEthernet[] = "Ethernet"; 89 const char kEthernet[] = "Ethernet";
90 const char kTether[] = "Tether";
85 const char kVPN[] = "VPN"; 91 const char kVPN[] = "VPN";
86 const char kWiFi[] = "WiFi"; 92 const char kWiFi[] = "WiFi";
87 const char kWimax[] = "WiMAX"; 93 const char kWimax[] = "WiMAX";
88 const char kWireless[] = "Wireless"; 94 const char kWireless[] = "Wireless";
89 } // namespace network_type 95 } // namespace network_type
90 96
91 namespace cellular { 97 namespace cellular {
92 const char kActivationState[] = "ActivationState"; 98 const char kActivationState[] = "ActivationState";
93 const char kActivated[] = "Activated"; 99 const char kActivated[] = "Activated";
94 const char kActivating[] = "Activating"; 100 const char kActivating[] = "Activating";
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const char kNotConnected[] = "NotConnected"; 187 const char kNotConnected[] = "NotConnected";
182 } // namespace connection_state 188 } // namespace connection_state
183 189
184 namespace ethernet { 190 namespace ethernet {
185 const char kAuthentication[] = "Authentication"; 191 const char kAuthentication[] = "Authentication";
186 const char kAuthenticationNone[] = "None"; 192 const char kAuthenticationNone[] = "None";
187 const char kEAP[] = "EAP"; 193 const char kEAP[] = "EAP";
188 const char k8021X[] = "8021X"; 194 const char k8021X[] = "8021X";
189 } // namespace ethernet 195 } // namespace ethernet
190 196
197 namespace tether {
198 const char kBatteryPercentage[] = "BatteryPercentage";
199 const char kCarrier[] = "Carrier";
200 const char kSignalStrength[] = "SignalStrength";
201 } // namespace tether
202
191 namespace ipconfig { 203 namespace ipconfig {
192 const char kGateway[] = "Gateway"; 204 const char kGateway[] = "Gateway";
193 const char kIPAddress[] = "IPAddress"; 205 const char kIPAddress[] = "IPAddress";
194 const char kIPv4[] = "IPv4"; 206 const char kIPv4[] = "IPv4";
195 const char kIPv6[] = "IPv6"; 207 const char kIPv6[] = "IPv6";
196 const char kNameServers[] = "NameServers"; 208 const char kNameServers[] = "NameServers";
197 const char kRoutingPrefix[] = "RoutingPrefix"; 209 const char kRoutingPrefix[] = "RoutingPrefix";
198 const char kSearchDomains[] = "SearchDomains"; 210 const char kSearchDomains[] = "SearchDomains";
199 const char kType[] = "Type"; 211 const char kType[] = "Type";
200 const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl"; 212 const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl";
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 } // global_network_config 438 } // global_network_config
427 439
428 namespace device_state { 440 namespace device_state {
429 const char kUninitialized[] = "Uninitialized"; 441 const char kUninitialized[] = "Uninitialized";
430 const char kDisabled[] = "Disabled"; 442 const char kDisabled[] = "Disabled";
431 const char kEnabling[] = "Enabling"; 443 const char kEnabling[] = "Enabling";
432 const char kEnabled[] = "Enabled"; 444 const char kEnabled[] = "Enabled";
433 } // device_state 445 } // device_state
434 446
435 } // namespace onc 447 } // namespace onc
OLDNEW
« 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