• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "net/base/net_export.h"
9 
10 namespace net {
11 
12 class NetworkChangeNotifier;
13 // NetworkChangeNotifierFactory provides a mechanism for overriding the default
14 // instance creation process of NetworkChangeNotifier.
15 class NET_EXPORT NetworkChangeNotifierFactory {
16  public:
NetworkChangeNotifierFactory()17   NetworkChangeNotifierFactory() {}
~NetworkChangeNotifierFactory()18   virtual ~NetworkChangeNotifierFactory() {}
19   virtual NetworkChangeNotifier* CreateInstance() = 0;
20 };
21 
22 }  // namespace net
23 
24 #endif  // NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_
25