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