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_PROXY_INTERFACE_ |
| 6 | #define SHILL_DHCP_PROXY_INTERFACE_ |
| 7 | |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 10 | namespace shill { |
| 11 | |
Darin Petkov | aceede3 | 2011-07-18 15:32:38 -0700 | [diff] [blame] | 12 | // These are the methods that a DHCP proxy must support. The interface is |
| 13 | // provided so that it can be mocked in tests. |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 14 | class DHCPProxyInterface { |
| 15 | public: |
| 16 | virtual ~DHCPProxyInterface() {} |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 17 | |
Darin Petkov | aceede3 | 2011-07-18 15:32:38 -0700 | [diff] [blame] | 18 | virtual void Rebind(const std::string &interface) = 0; |
| 19 | virtual void Release(const std::string &interface) = 0; |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | } // namespace shill |
| 23 | |
| 24 | #endif // SHILL_DHCP_PROXY_INTERFACE_ |