Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / net / android / network_change_notifier_factory_android.h
blobab4d169866a44c7fc9f744b6a05d54f85ecfd46e
1 // Copyright (c) 2012 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.
5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_ANDROID_H_
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_ANDROID_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "net/android/network_change_notifier_delegate_android.h"
11 #include "net/base/net_export.h"
12 #include "net/base/network_change_notifier_factory.h"
14 namespace net {
16 class NetworkChangeNotifier;
17 class NetworkChangeNotifierDelegateAndroid;
19 // NetworkChangeNotifierFactory creates Android-specific specialization of
20 // NetworkChangeNotifier. See network_change_notifier_android.h for more
21 // details.
22 class NET_EXPORT NetworkChangeNotifierFactoryAndroid :
23 public NetworkChangeNotifierFactory {
24 public:
25 // Must be called on the JNI thread.
26 NetworkChangeNotifierFactoryAndroid();
28 // Must be called on the JNI thread.
29 ~NetworkChangeNotifierFactoryAndroid() override;
31 // NetworkChangeNotifierFactory:
32 NetworkChangeNotifier* CreateInstance() override;
34 private:
35 // Delegate passed to the instances created by this class.
36 NetworkChangeNotifierDelegateAndroid delegate_;
38 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierFactoryAndroid);
41 } // namespace net
43 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_