summaryrefslogtreecommitdiffstats
path: root/components/onc/onc_constants.cc
diff options
context:
space:
mode:
authorstevenjb <stevenjb@chromium.org>2015-01-07 11:06:54 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-07 19:08:26 +0000
commit75a3c1dca4598fd845b9871c56ac867eb9a25447 (patch)
treeb496570b9562bead1144454ac7e7e70909446029 /components/onc/onc_constants.cc
parent21533286b2ba1f1d5e3c4c4d8bf07d6dddb321e9 (diff)
downloadchromium_src-75a3c1dca4598fd845b9871c56ac867eb9a25447.zip
chromium_src-75a3c1dca4598fd845b9871c56ac867eb9a25447.tar.gz
chromium_src-75a3c1dca4598fd845b9871c56ac867eb9a25447.tar.bz2
ONC: Add IPAddressConfigType and NameServersConfigType
This CL introdcues IPAddressConfigType and NameServersConfigType If either of these is set to 'Static', a 'StaticIPConfig' object must be provided and must specify any non-default configuration. If neither is set to 'Static', the StaticIPConfig object will be ignored. Originally uploaded as https://codereview.chromium.org/750313003/ BUG=411289 Review URL: https://codereview.chromium.org/749013003 Cr-Commit-Position: refs/heads/master@{#310325}
Diffstat (limited to 'components/onc/onc_constants.cc')
-rw-r--r--components/onc/onc_constants.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc
index e110dee..14c5886 100644
--- a/components/onc/onc_constants.cc
+++ b/components/onc/onc_constants.cc
@@ -39,8 +39,12 @@ const char kDevice[] = "Device";
const char kErrorState[] = "ErrorState";
const char kEthernet[] = "Ethernet";
const char kGUID[] = "GUID";
+const char kIPAddressConfigType[] = "IPAddressConfigType";
const char kIPConfigs[] = "IPConfigs";
+const char kIPConfigTypeDHCP[] = "DHCP";
+const char kIPConfigTypeStatic[] = "Static";
const char kMacAddress[] = "MacAddress";
+const char kNameServersConfigType[] = "NameServersConfigType";
const char kName[] = "Name";
const char kPriority[] = "Priority";
const char kProxySettings[] = "ProxySettings";