diff options
author | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 03:32:30 +0000 |
---|---|---|
committer | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 03:32:30 +0000 |
commit | 4189c9c2dce08b2526b2573940f054199aee197b (patch) | |
tree | 6c4301617eb3b37874d12f4ad8dccdbdb4c1f462 /chromeos/network/onc/onc_constants.h | |
parent | 23af6f6075f1897761595d01963916483a63b6ea (diff) | |
download | chromium_src-4189c9c2dce08b2526b2573940f054199aee197b.zip chromium_src-4189c9c2dce08b2526b2573940f054199aee197b.tar.gz chromium_src-4189c9c2dce08b2526b2573940f054199aee197b.tar.bz2 |
This adds Cellular to the Shill to ONC translation.
It also populates the Name property when translating from Shill to ONC, and adds a ConnectionState property in ONC that indicates the current connection state of the network.
(TBR'ing OWNERS because it's just refactoring: moving symbols into more specific namespaces)
TBR=zelidrag@chromium.org,glotov@chromium.org,mnissler@chromium.org
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11962048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/network/onc/onc_constants.h')
-rw-r--r-- | chromeos/network/onc/onc_constants.h | 71 |
1 files changed, 63 insertions, 8 deletions
diff --git a/chromeos/network/onc/onc_constants.h b/chromeos/network/onc/onc_constants.h index 579049c..29b686a 100644 --- a/chromeos/network/onc/onc_constants.h +++ b/chromeos/network/onc/onc_constants.h @@ -19,12 +19,6 @@ enum ONCSource { ONC_SOURCE_USER_POLICY, }; -// Top Level ONC. -CHROMEOS_EXPORT extern const char kCertificates[]; -CHROMEOS_EXPORT extern const char kEncryptedConfiguration[]; -CHROMEOS_EXPORT extern const char kNetworkConfigurations[]; -CHROMEOS_EXPORT extern const char kUnencryptedConfiguration[]; - // This is no ONC key or value but used for logging only. // TODO(pneubeck): Remove. CHROMEOS_EXPORT extern const char kNetworkConfiguration[]; @@ -33,8 +27,17 @@ CHROMEOS_EXPORT extern const char kNetworkConfiguration[]; CHROMEOS_EXPORT extern const char kRecommended[]; CHROMEOS_EXPORT extern const char kRemove[]; +// Top Level Configuration +namespace toplevel_config { +CHROMEOS_EXPORT extern const char kCertificates[]; +CHROMEOS_EXPORT extern const char kEncryptedConfiguration[]; +CHROMEOS_EXPORT extern const char kNetworkConfigurations[]; +CHROMEOS_EXPORT extern const char kType[]; +CHROMEOS_EXPORT extern const char kUnencryptedConfiguration[]; +} // namespace toplevel_config + // NetworkConfiguration. -// TODO(pneubeck): Put into namespace. +namespace network_config { CHROMEOS_EXPORT extern const char kCellular[]; CHROMEOS_EXPORT extern const char kEthernet[]; CHROMEOS_EXPORT extern const char kGUID[]; @@ -43,9 +46,60 @@ CHROMEOS_EXPORT extern const char kName[]; CHROMEOS_EXPORT extern const char kNameServers[]; CHROMEOS_EXPORT extern const char kProxySettings[]; CHROMEOS_EXPORT extern const char kSearchDomains[]; +CHROMEOS_EXPORT extern const char kServicePath[]; +CHROMEOS_EXPORT extern const char kConnectionState[]; CHROMEOS_EXPORT extern const char kType[]; CHROMEOS_EXPORT extern const char kVPN[]; CHROMEOS_EXPORT extern const char kWiFi[]; +} // namespace network_config + +namespace network_type { +CHROMEOS_EXPORT extern const char kAllTypes[]; +CHROMEOS_EXPORT extern const char kCellular[]; +CHROMEOS_EXPORT extern const char kEthernet[]; +CHROMEOS_EXPORT extern const char kVPN[]; +CHROMEOS_EXPORT extern const char kWiFi[]; +} // namespace network_type + +namespace cellular { +CHROMEOS_EXPORT extern const char kActivateOverNonCellularNetwork[]; +CHROMEOS_EXPORT extern const char kActivationState[]; +CHROMEOS_EXPORT extern const char kAllowRoaming[]; +CHROMEOS_EXPORT extern const char kAPN[]; +CHROMEOS_EXPORT extern const char kCarrier[]; +CHROMEOS_EXPORT extern const char kESN[]; +CHROMEOS_EXPORT extern const char kFamily[]; +CHROMEOS_EXPORT extern const char kFirmwareRevision[]; +CHROMEOS_EXPORT extern const char kFoundNetworks[]; +CHROMEOS_EXPORT extern const char kHardwareRevision[]; +CHROMEOS_EXPORT extern const char kHomeProvider[]; +CHROMEOS_EXPORT extern const char kICCID[]; +CHROMEOS_EXPORT extern const char kIMEI[]; +CHROMEOS_EXPORT extern const char kIMSI[]; +CHROMEOS_EXPORT extern const char kManufacturer[]; +CHROMEOS_EXPORT extern const char kMDN[]; +CHROMEOS_EXPORT extern const char kMEID[]; +CHROMEOS_EXPORT extern const char kMIN[]; +CHROMEOS_EXPORT extern const char kModelID[]; +CHROMEOS_EXPORT extern const char kNetworkTechnology[]; +CHROMEOS_EXPORT extern const char kOperatorCode[]; +CHROMEOS_EXPORT extern const char kOperatorName[]; +CHROMEOS_EXPORT extern const char kPRLVersion[]; +CHROMEOS_EXPORT extern const char kProviderRequiresRoaming[]; +CHROMEOS_EXPORT extern const char kRoamingState[]; +CHROMEOS_EXPORT extern const char kSelectedNetwork[]; +CHROMEOS_EXPORT extern const char kServingOperator[]; +CHROMEOS_EXPORT extern const char kSIMLockStatus[]; +CHROMEOS_EXPORT extern const char kSIMPresent[]; +CHROMEOS_EXPORT extern const char kSupportedCarriers[]; +CHROMEOS_EXPORT extern const char kSupportNetworkScan[]; +} // namespace cellular + +namespace connection_state { +CHROMEOS_EXPORT extern const char kConnected[]; +CHROMEOS_EXPORT extern const char kConnecting[]; +CHROMEOS_EXPORT extern const char kNotConnected[]; +} // namespace connection_state namespace ipconfig { CHROMEOS_EXPORT extern const char kGateway[]; @@ -65,6 +119,7 @@ CHROMEOS_EXPORT extern const char k8021X[]; namespace wifi { CHROMEOS_EXPORT extern const char kAutoConnect[]; +CHROMEOS_EXPORT extern const char kBSSID[]; CHROMEOS_EXPORT extern const char kEAP[]; CHROMEOS_EXPORT extern const char kHiddenSSID[]; CHROMEOS_EXPORT extern const char kNone[]; @@ -84,6 +139,7 @@ CHROMEOS_EXPORT extern const char kClient[]; CHROMEOS_EXPORT extern const char kCommonName[]; CHROMEOS_EXPORT extern const char kEmailAddress[]; CHROMEOS_EXPORT extern const char kEnrollmentURI[]; +CHROMEOS_EXPORT extern const char kGUID[]; CHROMEOS_EXPORT extern const char kIssuerCARef[]; CHROMEOS_EXPORT extern const char kIssuer[]; CHROMEOS_EXPORT extern const char kLocality[]; @@ -113,7 +169,6 @@ CHROMEOS_EXPORT extern const char kPBKDF2[]; CHROMEOS_EXPORT extern const char kSHA1[]; CHROMEOS_EXPORT extern const char kSalt[]; CHROMEOS_EXPORT extern const char kStretch[]; -CHROMEOS_EXPORT extern const char kType[]; } // namespace encrypted namespace eap { |