OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | 5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ |
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | 6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "net/base/network_change_notifier_factory.h" | 10 #include "net/base/network_change_notifier_factory.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 class NetworkChangeNotifier; | 14 class NetworkChangeNotifier; |
15 | 15 |
16 namespace android { | 16 namespace android { |
17 | 17 |
18 // NetworkChangeNotifierFactory creates Android-specific specialization of | 18 class NetworkChangeNotifier; |
19 // NetworkChangeNotifier. | 19 |
20 // NetworkChangeNotifierFactory creates a sinfleton Android-specific | |
Ryan Sleevi
2012/07/02 16:12:21
sinfleton -> singleton
| |
21 // specialization of NetworkChangeNotifier. | |
20 class NetworkChangeNotifierFactory : public net::NetworkChangeNotifierFactory { | 22 class NetworkChangeNotifierFactory : public net::NetworkChangeNotifierFactory { |
21 public: | 23 public: |
22 NetworkChangeNotifierFactory(); | 24 NetworkChangeNotifierFactory(); |
25 static NetworkChangeNotifier* GetInstance(); | |
23 | 26 |
24 // Overrides of net::NetworkChangeNotifierFactory. | 27 // Overrides of net::NetworkChangeNotifierFactory. |
25 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; | 28 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; |
26 }; | 29 }; |
27 | 30 |
28 } // namespace android | 31 } // namespace android |
29 } // namespace net | 32 } // namespace net |
30 | 33 |
31 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | 34 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ |
OLD | NEW |