Basic DHCP framework and DHCPCD proxies.

DHCPProvider singleton will instantiate and supply DHCPConfig objects. Each
DHCPConfig object corresponds to a separate DHCP client (dhcpcd). Each
DHCPConfig object will be associated with a single DHCPCDProxy object to
communicate with that client. DHCPProvider will use a DHCPCDListener singleton
to figure the D-Bus destination of each spawned DHCP client dispatch signals to
its DHCPCDProxy.

Also fix dhcpcd.xml (this needs to be fixed in dhcpcd itself, really).

BUG=chromium-os:16013
TEST=manual by modifying shill_main and instantiating the proxies.

Change-Id: I8fb0eadb8c751365997db2ed2bdfde0711c362a3
Reviewed-on: http://gerrit.chromium.org/gerrit/1934
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
diff --git a/dhcp_provider.h b/dhcp_provider.h
new file mode 100644
index 0000000..c77d456
--- /dev/null
+++ b/dhcp_provider.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SHILL_DHCP_PROVIDER_
+#define SHILL_DHCP_PROVIDER_
+
+#include <base/memory/singleton.h>
+
+namespace shill {
+
+class DHCPProvider {
+ public:
+  // This is a singleton -- use DHCPProvider::GetInstance()->Foo()
+  static DHCPProvider *GetInstance();
+
+ private:
+  friend struct DefaultSingletonTraits<DHCPProvider>;
+
+  DHCPProvider();
+  virtual ~DHCPProvider();
+
+  DISALLOW_COPY_AND_ASSIGN(DHCPProvider);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_DHCP_PROVIDER_