Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_DHCP_PROVIDER_ |
| 6 | #define SHILL_DHCP_PROVIDER_ |
| 7 | |
| 8 | #include <base/memory/singleton.h> |
| 9 | |
| 10 | namespace shill { |
| 11 | |
| 12 | class DHCPProvider { |
| 13 | public: |
| 14 | // This is a singleton -- use DHCPProvider::GetInstance()->Foo() |
| 15 | static DHCPProvider *GetInstance(); |
| 16 | |
| 17 | private: |
| 18 | friend struct DefaultSingletonTraits<DHCPProvider>; |
| 19 | |
| 20 | DHCPProvider(); |
| 21 | virtual ~DHCPProvider(); |
| 22 | |
| 23 | DISALLOW_COPY_AND_ASSIGN(DHCPProvider); |
| 24 | }; |
| 25 | |
| 26 | } // namespace shill |
| 27 | |
| 28 | #endif // SHILL_DHCP_PROVIDER_ |