blob: 35636cf7d6657ef0ca28c6774ab232b681f7d0f6 [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
Ben Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_DHCP_PROXY_INTERFACE_H_
6#define SHILL_DHCP_PROXY_INTERFACE_H_
Darin Petkov50308cd2011-06-01 18:25:07 -07007
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
Ben Chanc45688b2014-07-02 23:50:45 -070024#endif // SHILL_DHCP_PROXY_INTERFACE_H_