1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 7 8 #include <memory> 9 10 #include "net/base/net_export.h" 11 12 namespace net { 13 14 class NetworkChangeNotifier; 15 // NetworkChangeNotifierFactory provides a mechanism for overriding the default 16 // instance creation process of NetworkChangeNotifier. 17 class NET_EXPORT NetworkChangeNotifierFactory { 18 public: NetworkChangeNotifierFactory()19 NetworkChangeNotifierFactory() {} ~NetworkChangeNotifierFactory()20 virtual ~NetworkChangeNotifierFactory() {} 21 virtual std::unique_ptr<NetworkChangeNotifier> CreateInstance() = 0; 22 }; 23 24 } // namespace net 25 26 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ 27