| OLD | NEW |
| (Empty) |
| 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 CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "net/base/network_change_notifier_factory.h" | |
| 10 | |
| 11 namespace chromeos { | |
| 12 | |
| 13 class NetworkChangeNotifierNetworkLibrary; | |
| 14 | |
| 15 // CrosNetworkChangeNotifierFactory creates ChromeOS-specific specialization of | |
| 16 // NetworkChangeNotifier. | |
| 17 class CrosNetworkChangeNotifierFactory | |
| 18 : public net::NetworkChangeNotifierFactory { | |
| 19 public: | |
| 20 CrosNetworkChangeNotifierFactory() {} | |
| 21 | |
| 22 // Overrides of net::NetworkChangeNotifierFactory. | |
| 23 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; | |
| 24 | |
| 25 // Gets the instance of the NetworkChangeNotifier for Chrome OS. | |
| 26 // This is used for setting up the notifier at startup. | |
| 27 static NetworkChangeNotifierNetworkLibrary* GetInstance(); | |
| 28 }; | |
| 29 | |
| 30 } // namespace net | |
| 31 | |
| 32 #endif // CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | |
| OLD | NEW |