blob: 239095e87eb83045585a6b7acc3506ffc39dc876 [file] [log] [blame]
Darin Petkov50308cd2011-06-01 18:25:07 -07001// 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 Petkovd1b715b2011-06-02 21:21:22 -07008#include <string>
9
Darin Petkov50308cd2011-06-01 18:25:07 -070010namespace shill {
11
Darin Petkovaceede32011-07-18 15:32:38 -070012// These are the methods that a DHCP proxy must support. The interface is
13// provided so that it can be mocked in tests.
Darin Petkov50308cd2011-06-01 18:25:07 -070014class DHCPProxyInterface {
15 public:
16 virtual ~DHCPProxyInterface() {}
Darin Petkovd1b715b2011-06-02 21:21:22 -070017
Darin Petkovaceede32011-07-18 15:32:38 -070018 virtual void Rebind(const std::string &interface) = 0;
19 virtual void Release(const std::string &interface) = 0;
Darin Petkov50308cd2011-06-01 18:25:07 -070020};
21
22} // namespace shill
23
24#endif // SHILL_DHCP_PROXY_INTERFACE_