This source file includes following definitions.
- CreateInstance
- GetInstance
#include "chromeos/network/network_change_notifier_factory_chromeos.h"
#include "chromeos/network/network_change_notifier_chromeos.h"
namespace chromeos {
namespace {
NetworkChangeNotifierChromeos* g_network_change_notifier_chromeos = NULL;
}
net::NetworkChangeNotifier*
NetworkChangeNotifierFactoryChromeos::CreateInstance() {
DCHECK(!g_network_change_notifier_chromeos);
g_network_change_notifier_chromeos = new NetworkChangeNotifierChromeos();
return g_network_change_notifier_chromeos;
}
NetworkChangeNotifierChromeos*
NetworkChangeNotifierFactoryChromeos::GetInstance() {
return g_network_change_notifier_chromeos;
}
}