blob: bec49aedd6eb9d52668470f3a9358be4ee57148d [file] [log] [blame]
// Copyright 2018 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_VPN_ARC_VPN_DRIVER_H_
#define SHILL_VPN_ARC_VPN_DRIVER_H_
#include <string>
#include <base/callback.h>
#include <gtest/gtest_prod.h>
#include "shill/device_info.h"
#include "shill/error.h"
#include "shill/ipconfig.h"
#include "shill/refptr_types.h"
#include "shill/service.h"
#include "shill/virtual_device.h"
#include "shill/vpn/vpn_driver.h"
namespace shill {
class ArcVpnDriver : public VPNDriver {
public:
ArcVpnDriver(Manager* manager, ProcessManager* process_manager);
~ArcVpnDriver() override;
void Connect(const VPNServiceRefPtr& service, Error* error) override;
std::string GetProviderType() const override;
IfType GetIfType() const override;
void Disconnect() override;
private:
friend class ArcVpnDriverTest;
// Tear down the connection.
void Cleanup();
static const Property kProperties[];
VirtualDeviceRefPtr device_;
DISALLOW_COPY_AND_ASSIGN(ArcVpnDriver);
};
} // namespace shill
#endif // SHILL_VPN_ARC_VPN_DRIVER_H_