| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_LOCAL_DISCOVERY_WIFI_BOOTSTRAPPING_DEVICE_LISTER_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_BOOTSTRAPPING_DEVICE_LISTER_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_BOOTSTRAPPING_DEVICE_LISTER_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_BOOTSTRAPPING_DEVICE_LISTER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual ~BootstrappingDeviceLister(); | 45 virtual ~BootstrappingDeviceLister(); |
| 46 | 46 |
| 47 void Start(); | 47 void Start(); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 typedef std::vector< | 50 typedef std::vector< |
| 51 std::pair<std::string /*ssid*/, std::string /*internal_name*/> > | 51 std::pair<std::string /*ssid*/, std::string /*internal_name*/> > |
| 52 ActiveDeviceList; | 52 ActiveDeviceList; |
| 53 | 53 |
| 54 virtual void OnNetworkListChanged( | 54 virtual void OnNetworkListChanged( |
| 55 const std::vector<NetworkProperties>& ssids) OVERRIDE; | 55 const std::vector<NetworkProperties>& ssids) override; |
| 56 | 56 |
| 57 void UpdateChangedSSIDs(bool available, | 57 void UpdateChangedSSIDs(bool available, |
| 58 const ActiveDeviceList& changed, | 58 const ActiveDeviceList& changed, |
| 59 const ActiveDeviceList& original); | 59 const ActiveDeviceList& original); |
| 60 | 60 |
| 61 WifiManager* wifi_manager_; | 61 WifiManager* wifi_manager_; |
| 62 UpdateCallback update_callback_; | 62 UpdateCallback update_callback_; |
| 63 | 63 |
| 64 bool started_; | 64 bool started_; |
| 65 ActiveDeviceList active_devices_; | 65 ActiveDeviceList active_devices_; |
| 66 base::WeakPtrFactory<BootstrappingDeviceLister> weak_factory_; | 66 base::WeakPtrFactory<BootstrappingDeviceLister> weak_factory_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace wifi | 69 } // namespace wifi |
| 70 | 70 |
| 71 } // namespace local_discovery | 71 } // namespace local_discovery |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_BOOTSTRAPPING_DEVICE_LISTER_H_ | 73 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_WIFI_BOOTSTRAPPING_DEVICE_LISTER_H_ |
| OLD | NEW |