| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_CROS_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 chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 class NetworkChangeNotifier; | 14 class NetworkChangeNotifierChromeos; |
| 15 | 15 |
| 16 // CrosNetworkChangeNotifierFactory creates ChromeOS-specific specialization of | 16 // CrosNetworkChangeNotifierFactory creates ChromeOS-specific specialization of |
| 17 // NetworkChangeNotifier. | 17 // NetworkChangeNotifier. |
| 18 class CrosNetworkChangeNotifierFactory | 18 class CrosNetworkChangeNotifierFactory |
| 19 : public net::NetworkChangeNotifierFactory { | 19 : public net::NetworkChangeNotifierFactory { |
| 20 public: | 20 public: |
| 21 CrosNetworkChangeNotifierFactory() {} | 21 CrosNetworkChangeNotifierFactory() {} |
| 22 | 22 |
| 23 // Overrides of net::NetworkChangeNotifierFactory. | 23 // Overrides of net::NetworkChangeNotifierFactory. |
| 24 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; | 24 virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE; |
| 25 |
| 26 // Gets the instance of the NetworkChangeNotifier for Chrome OS. |
| 27 // This is used for setting up the notifier at startup. |
| 28 static NetworkChangeNotifierChromeos* GetInstance(); |
| 25 }; | 29 }; |
| 26 | 30 |
| 27 } // namespace net | 31 } // namespace net |
| 28 | 32 |
| 29 #endif // CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_NET_CROS_NETWORK_CHANGE_NOTIFIER_FACTORY_H_ |
| OLD | NEW |