blob: 4a5f54a2145fd9116b19da9348c2139510c235a4 [file] [log] [blame]
// Copyright 2015 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_ICMP_SESSION_FACTORY_H_
#define SHILL_ICMP_SESSION_FACTORY_H_
#include <base/lazy_instance.h>
#include "shill/icmp_session.h"
namespace shill {
class IcmpSessionFactory {
public:
virtual ~IcmpSessionFactory();
// This is a singleton. Use IcmpSessionFactory::GetInstance()->Foo().
static IcmpSessionFactory* GetInstance();
virtual IcmpSession* CreateIcmpSession(EventDispatcher* dispatcher);
protected:
IcmpSessionFactory();
private:
friend struct base::DefaultLazyInstanceTraits<IcmpSessionFactory>;
DISALLOW_COPY_AND_ASSIGN(IcmpSessionFactory);
};
} // namespace shill
#endif // SHILL_ICMP_SESSION_FACTORY_H_