summaryrefslogtreecommitdiff
path: root/chromium/net/base/network_change_notifier_factory.h
blob: 31ec69ecd4d94c8fcea88693cd9f27e8e82a9983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_
#define NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_

#include <memory>

#include "net/base/net_export.h"

namespace net {

class NetworkChangeNotifier;
// NetworkChangeNotifierFactory provides a mechanism for overriding the default
// instance creation process of NetworkChangeNotifier.
class NET_EXPORT NetworkChangeNotifierFactory {
 public:
  NetworkChangeNotifierFactory() = default;
  virtual ~NetworkChangeNotifierFactory() = default;
  virtual std::unique_ptr<NetworkChangeNotifier> CreateInstance() = 0;
};

}  // namespace net

#endif  // NET_BASE_NETWORK_CHANGE_NOTIFIER_FACTORY_H_