blob: d226eef5e43b3c9c1a00e5eaa3d0ce5fac24210a [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.
#include "shill/ppp_device_factory.h"
#include "shill/ppp_device.h"
namespace shill {
PPPDeviceFactory::PPPDeviceFactory() = default;
PPPDeviceFactory::~PPPDeviceFactory() = default;
PPPDeviceFactory* PPPDeviceFactory::GetInstance() {
static base::NoDestructor<PPPDeviceFactory> instance;
return instance.get();
}
PPPDevice* PPPDeviceFactory::CreatePPPDevice(
ControlInterface* control,
EventDispatcher* dispatcher,
Metrics* metrics,
Manager* manager,
const std::string& link_name,
int interface_index) {
return new PPPDevice(control, dispatcher, metrics, manager, link_name,
interface_index);
}
} // namespace shill