| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_NETWORK_MESSAGE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class NetworkMessageObserver : public NetworkLibrary::Observer { | 26 class NetworkMessageObserver : public NetworkLibrary::Observer { |
| 27 public: | 27 public: |
| 28 explicit NetworkMessageObserver(Profile* profile); | 28 explicit NetworkMessageObserver(Profile* profile); |
| 29 virtual ~NetworkMessageObserver(); | 29 virtual ~NetworkMessageObserver(); |
| 30 | 30 |
| 31 typedef std::map<std::string, WifiNetwork> ServicePathWifiMap; | 31 typedef std::map<std::string, WifiNetwork> ServicePathWifiMap; |
| 32 typedef std::map<std::string, CellularNetwork> ServicePathCellularMap; | 32 typedef std::map<std::string, CellularNetwork> ServicePathCellularMap; |
| 33 private: | 33 private: |
| 34 virtual void CreateModalPopup(views::WindowDelegate* view); | 34 virtual void CreateModalPopup(views::WindowDelegate* view); |
| 35 | 35 |
| 36 // NetworkLibrary::Observer implementation. |
| 36 virtual void NetworkChanged(NetworkLibrary* obj); | 37 virtual void NetworkChanged(NetworkLibrary* obj); |
| 37 virtual void NetworkTraffic(NetworkLibrary* obj, int traffic_type) {} | |
| 38 | 38 |
| 39 bool initialized_; | 39 bool initialized_; |
| 40 // Wifi networks by service path. | 40 // Wifi networks by service path. |
| 41 ServicePathWifiMap wifi_networks_; | 41 ServicePathWifiMap wifi_networks_; |
| 42 // Cellular networks by service path. | 42 // Cellular networks by service path. |
| 43 ServicePathCellularMap cellular_networks_; | 43 ServicePathCellularMap cellular_networks_; |
| 44 SystemNotification notification_; | 44 SystemNotification notification_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); | 46 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace chromeos | 49 } // namespace chromeos |
| 50 | 50 |
| 51 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ |
| 52 | 52 |
| OLD | NEW |