blob: e4172e9a36e03db8b41e7b5c1bdb525992356c4a [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/icmp_session_factory.h"
#include <memory>
namespace shill {
IcmpSessionFactory::IcmpSessionFactory() {}
IcmpSessionFactory::~IcmpSessionFactory() {}
IcmpSessionFactory* IcmpSessionFactory::GetInstance() {
static base::NoDestructor<IcmpSessionFactory> instance;
return instance.get();
}
std::unique_ptr<IcmpSession> IcmpSessionFactory::CreateIcmpSession(
EventDispatcher* dispatcher) {
return std::make_unique<IcmpSession>(dispatcher);
}
} // namespace shill