| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 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_CHROME_NETWORK_WATCHER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_CHROME_NETWORK_WATCHER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "chromeos/network/network_state_handler_observer.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 // Chrome specific glue class to observe NetworkStateHandler and handle any |
| 16 // necessary updates to net:: on the correct thread. |
| 17 class ChromeNetworkWatcher : public NetworkStateHandlerObserver { |
| 18 public: |
| 19 ChromeNetworkWatcher(); |
| 20 virtual ~ChromeNetworkWatcher(); |
| 21 |
| 22 // NetworkStateHandlerObserver |
| 23 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; |
| 24 |
| 25 private: |
| 26 std::string last_ipv4_address_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkWatcher); |
| 29 }; |
| 30 |
| 31 } // namespace chromeos |
| 32 |
| 33 #endif // CHROME_BROWSER_CHROMEOS_NET_CHROME_NETWORK_WATCHER_H_ |
| OLD | NEW |