| // 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 { |
| |
| namespace { |
| base::LazyInstance<IcmpSessionFactory>::Leaky g_icmp_session_factory = |
| LAZY_INSTANCE_INITIALIZER; |
| } // namespace |
| |
| IcmpSessionFactory::IcmpSessionFactory() {} |
| IcmpSessionFactory::~IcmpSessionFactory() {} |
| |
| IcmpSessionFactory* IcmpSessionFactory::GetInstance() { |
| return g_icmp_session_factory.Pointer(); |
| } |
| |
| std::unique_ptr<IcmpSession> IcmpSessionFactory::CreateIcmpSession( |
| EventDispatcher* dispatcher) { |
| return std::make_unique<IcmpSession>(dispatcher); |
| } |
| |
| } // namespace shill |