| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 const char kEncryptedConfiguration[] = "EncryptedConfiguration"; | 26 const char kEncryptedConfiguration[] = "EncryptedConfiguration"; |
| 27 const char kNetworkConfigurations[] = "NetworkConfigurations"; | 27 const char kNetworkConfigurations[] = "NetworkConfigurations"; |
| 28 const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration"; | 28 const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration"; |
| 29 const char kType[] = "Type"; | 29 const char kType[] = "Type"; |
| 30 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration"; | 30 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration"; |
| 31 } // namespace toplevel_config | 31 } // namespace toplevel_config |
| 32 | 32 |
| 33 // Network Configuration | 33 // Network Configuration |
| 34 namespace network_config { | 34 namespace network_config { |
| 35 const char kCellular[] = "Cellular"; | 35 const char kCellular[] = "Cellular"; |
| 36 const char kConnectable[] = "Connectable"; |
| 37 const char kConnectionState[] = "ConnectionState"; |
| 36 const char kDevice[] = "Device"; | 38 const char kDevice[] = "Device"; |
| 39 const char kErrorState[] = "ErrorState"; |
| 37 const char kEthernet[] = "Ethernet"; | 40 const char kEthernet[] = "Ethernet"; |
| 38 const char kGUID[] = "GUID"; | 41 const char kGUID[] = "GUID"; |
| 39 const char kIPConfigs[] = "IPConfigs"; | 42 const char kIPConfigs[] = "IPConfigs"; |
| 40 const char kSavedIPConfig[] = "SavedIPConfig"; | |
| 41 const char kStaticIPConfig[] = "StaticIPConfig"; | |
| 42 const char kMacAddress[] = "MacAddress"; | 43 const char kMacAddress[] = "MacAddress"; |
| 44 const char kNameServers[] = "NameServers"; |
| 43 const char kName[] = "Name"; | 45 const char kName[] = "Name"; |
| 44 const char kNameServers[] = "NameServers"; | |
| 45 const char kPriority[] = "Priority"; | 46 const char kPriority[] = "Priority"; |
| 46 const char kProxySettings[] = "ProxySettings"; | 47 const char kProxySettings[] = "ProxySettings"; |
| 48 const char kRestrictedConnectivity[] = "RestrictedConnectivity"; |
| 49 const char kSavedIPConfig[] = "SavedIPConfig"; |
| 47 const char kSearchDomains[] = "SearchDomains"; | 50 const char kSearchDomains[] = "SearchDomains"; |
| 48 const char kConnectionState[] = "ConnectionState"; | 51 const char kSourceDevice[] = "Device"; |
| 49 const char kRestrictedConnectivity[] = "RestrictedConnectivity"; | 52 const char kSourceDevicePolicy[] = "DevicePolicy"; |
| 50 const char kConnectable[] = "Connectable"; | 53 const char kSourceNone[] = "None"; |
| 51 const char kErrorState[] = "ErrorState"; | 54 const char kSourceUser[] = "User"; |
| 55 const char kSourceUserPolicy[] = "UserPolicy"; |
| 56 const char kSource[] = "Source"; |
| 57 const char kStaticIPConfig[] = "StaticIPConfig"; |
| 52 const char kType[] = "Type"; | 58 const char kType[] = "Type"; |
| 53 const char kVPN[] = "VPN"; | 59 const char kVPN[] = "VPN"; |
| 54 const char kWiFi[] = "WiFi"; | 60 const char kWiFi[] = "WiFi"; |
| 55 | 61 |
| 56 std::string CellularProperty(const std::string& property) { | 62 std::string CellularProperty(const std::string& property) { |
| 57 return std::string(kCellular) + "." + property; | 63 return std::string(kCellular) + "." + property; |
| 58 } | 64 } |
| 59 | 65 |
| 60 std::string VpnProperty(const std::string& property) { | 66 std::string VpnProperty(const std::string& property) { |
| 61 return std::string(kVPN) + "." + property; | 67 return std::string(kVPN) + "." + property; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 const char kLoginIDField[] = "${LOGIN_ID}"; | 357 const char kLoginIDField[] = "${LOGIN_ID}"; |
| 352 const char kEmailField[] = "${LOGIN_EMAIL}"; | 358 const char kEmailField[] = "${LOGIN_EMAIL}"; |
| 353 } // namespace substitutes | 359 } // namespace substitutes |
| 354 | 360 |
| 355 namespace global_network_config { | 361 namespace global_network_config { |
| 356 const char kAllowOnlyPolicyNetworksToAutoconnect[] = | 362 const char kAllowOnlyPolicyNetworksToAutoconnect[] = |
| 357 "AllowOnlyPolicyNetworksToAutoconnect"; | 363 "AllowOnlyPolicyNetworksToAutoconnect"; |
| 358 } // global_network_config | 364 } // global_network_config |
| 359 | 365 |
| 360 } // namespace onc | 366 } // namespace onc |
| OLD | NEW |