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