| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/utility/networking_private_handler.h" | 5 #include "chrome/utility/networking_private_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const std::string& network_guid) { | 109 const std::string& network_guid) { |
| 110 Send(new NetworkingPrivateMsg_SetProperties_Succeeded(message_id, | 110 Send(new NetworkingPrivateMsg_SetProperties_Succeeded(message_id, |
| 111 network_guid)); | 111 network_guid)); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void NetworkingPrivateHandler::OnStartConnectStart( | 114 void NetworkingPrivateHandler::OnStartConnectStart( |
| 115 int message_id, | 115 int message_id, |
| 116 const std::string& network_guid) { | 116 const std::string& network_guid) { |
| 117 wifi_service_->StartConnect( | 117 wifi_service_->StartConnect( |
| 118 network_guid, | 118 network_guid, |
| 119 WiFiService::kFrequencyUnknown, |
| 119 base::Bind(&NetworkingPrivateHandler::WiFiStartConnectSucceeded, | 120 base::Bind(&NetworkingPrivateHandler::WiFiStartConnectSucceeded, |
| 120 base::Unretained(this), | 121 base::Unretained(this), |
| 121 message_id), | 122 message_id), |
| 122 base::Bind(&NetworkingPrivateHandler::WiFiApiError, | 123 base::Bind(&NetworkingPrivateHandler::WiFiApiError, |
| 123 base::Unretained(this), | 124 base::Unretained(this), |
| 124 message_id)); | 125 message_id)); |
| 125 } | 126 } |
| 126 | 127 |
| 127 void NetworkingPrivateHandler::WiFiStartConnectSucceeded( | 128 void NetworkingPrivateHandler::WiFiStartConnectSucceeded( |
| 128 int message_id, | 129 int message_id, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 } | 210 } |
| 210 | 211 |
| 211 void NetworkingPrivateHandler::WiFiNetworksChangedEvent( | 212 void NetworkingPrivateHandler::WiFiNetworksChangedEvent( |
| 212 const WiFiService::NetworkGuidList& network_guid_list) { | 213 const WiFiService::NetworkGuidList& network_guid_list) { |
| 213 std::vector<std::string> networks(network_guid_list.begin(), | 214 std::vector<std::string> networks(network_guid_list.begin(), |
| 214 network_guid_list.end()); | 215 network_guid_list.end()); |
| 215 Send(new NetworkingPrivateMsg_NetworksChanged_Event(networks)); | 216 Send(new NetworkingPrivateMsg_NetworksChanged_Event(networks)); |
| 216 } | 217 } |
| 217 | 218 |
| 218 } // namespace chrome | 219 } // namespace chrome |
| OLD | NEW |