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 #include "chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.h" | 5 #include "chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.h" |
6 | 6 |
7 #include "base/cancelable_callback.h" | 7 #include "base/cancelable_callback.h" |
8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
10 #include "components/onc/onc_constants.h" | 10 #include "components/onc/onc_constants.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void ConnectToNetworkByID(const std::string& network_guid, | 73 void ConnectToNetworkByID(const std::string& network_guid, |
74 const WifiManager::SuccessCallback& callback); | 74 const WifiManager::SuccessCallback& callback); |
75 | 75 |
76 void RequestNetworkCredentials( | 76 void RequestNetworkCredentials( |
77 const std::string& ssid, | 77 const std::string& ssid, |
78 const WifiManager::CredentialsCallback& callback); | 78 const WifiManager::CredentialsCallback& callback); |
79 | 79 |
80 private: | 80 private: |
81 // net::NetworkChangeNotifier::NetworkChangeObserver implementation. | 81 // net::NetworkChangeNotifier::NetworkChangeObserver implementation. |
82 virtual void OnNetworkChanged( | 82 virtual void OnNetworkChanged( |
83 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; | 83 net::NetworkChangeNotifier::ConnectionType type) override; |
84 | 84 |
85 void GetSSIDListInternal(NetworkPropertiesList* ssid_list); | 85 void GetSSIDListInternal(NetworkPropertiesList* ssid_list); |
86 | 86 |
87 void OnNetworkListChangedEvent(const std::vector<std::string>& network_guids); | 87 void OnNetworkListChangedEvent(const std::vector<std::string>& network_guids); |
88 | 88 |
89 void OnNetworksChangedEvent(const std::vector<std::string>& network_guids); | 89 void OnNetworksChangedEvent(const std::vector<std::string>& network_guids); |
90 | 90 |
91 std::string GetConnectedGUID(); | 91 std::string GetConnectedGUID(); |
92 | 92 |
93 bool IsConnected(const std::string& network_guid); | 93 bool IsConnected(const std::string& network_guid); |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 } | 562 } |
563 | 563 |
564 void WifiManagerNonChromeos::RemoveNetworkListObserver( | 564 void WifiManagerNonChromeos::RemoveNetworkListObserver( |
565 NetworkListObserver* observer) { | 565 NetworkListObserver* observer) { |
566 network_list_observers_.RemoveObserver(observer); | 566 network_list_observers_.RemoveObserver(observer); |
567 } | 567 } |
568 | 568 |
569 } // namespace wifi | 569 } // namespace wifi |
570 | 570 |
571 } // namespace local_discovery | 571 } // namespace local_discovery |
OLD | NEW |