Chromium Code Reviews
|
| 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_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/memory/scoped_ptr.h" | |
|
oshima
2011/05/17 17:33:05
not used?
zel
2011/05/18 00:43:33
Done.
| |
| 11 #include "chrome/browser/chromeos/cros/network_library.h" | |
| 12 #include "net/base/network_change_notifier.h" | |
| 13 | |
| 14 namespace net { | |
| 15 | |
| 16 class NetworkChangeNotifierCros | |
|
oshima
2011/05/17 17:33:05
NetworkChangeNotifierChromeos
(to be sync with fil
| |
| 17 : public NetworkChangeNotifier, | |
| 18 public chromeos::NetworkLibrary::NetworkManagerObserver { | |
| 19 public: | |
| 20 NetworkChangeNotifierCros(); | |
| 21 | |
| 22 private: | |
| 23 bool connected_; | |
| 24 bool has_active_network_; | |
| 25 chromeos::ConnectivityState connectivity_state_; | |
| 26 std::string service_path_; | |
| 27 std::string ip_address_; | |
|
oshima
2011/05/17 17:33:05
data member after methods. Please add description.
| |
| 28 | |
| 29 virtual ~NetworkChangeNotifierCros(); | |
| 30 | |
| 31 // NetworkChangeNotifier overrides. | |
| 32 virtual bool IsCurrentlyOffline() const; | |
|
oshima
2011/05/17 17:33:05
OVERRIDE
zel
2011/05/18 00:43:33
Done.
| |
| 33 | |
| 34 // NetworkManagerObserver overrides: | |
| 35 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj); | |
|
oshima
2011/05/17 17:33:05
OVERRIDE
zel
2011/05/18 00:43:33
Done.
| |
| 36 | |
| 37 // Updates data members that keep the track the network stack state. | |
| 38 void UpdateNetworkState(chromeos::NetworkLibrary* cros); | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierCros); | |
| 41 }; | |
| 42 | |
| 43 } // namespace net | |
| 44 | |
| 45 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | |
| OLD | NEW |