Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Side by Side Diff: chrome/utility/networking_private_handler.cc

Issue 32193015: WlanConnect to BSS with given frequency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetDesiredBssidList now selects one BSSID with best quality. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const std::string& network_guid) { 107 const std::string& network_guid) {
108 Send(new NetworkingPrivateMsg_SetProperties_Succeeded(message_id, 108 Send(new NetworkingPrivateMsg_SetProperties_Succeeded(message_id,
109 network_guid)); 109 network_guid));
110 } 110 }
111 111
112 void NetworkingPrivateHandler::OnStartConnectStart( 112 void NetworkingPrivateHandler::OnStartConnectStart(
113 int message_id, 113 int message_id,
114 const std::string& network_guid) { 114 const std::string& network_guid) {
115 wifi_service_->StartConnect( 115 wifi_service_->StartConnect(
116 network_guid, 116 network_guid,
117 WiFiService::kFrequencyUnknown,
afontan 2013/10/24 18:18:20 I think that the name kFrequencyAny or kFrequencyU
mef 2013/10/24 19:13:54 Done.
117 base::Bind(&NetworkingPrivateHandler::WiFiStartConnectSucceeded, 118 base::Bind(&NetworkingPrivateHandler::WiFiStartConnectSucceeded,
118 base::Unretained(this), 119 base::Unretained(this),
119 message_id), 120 message_id),
120 base::Bind(&NetworkingPrivateHandler::WiFiApiError, 121 base::Bind(&NetworkingPrivateHandler::WiFiApiError,
121 base::Unretained(this), 122 base::Unretained(this),
122 message_id)); 123 message_id));
123 } 124 }
124 125
125 void NetworkingPrivateHandler::WiFiStartConnectSucceeded( 126 void NetworkingPrivateHandler::WiFiStartConnectSucceeded(
126 int message_id, 127 int message_id,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 208 }
208 209
209 void NetworkingPrivateHandler::WiFiNetworksChangedEvent( 210 void NetworkingPrivateHandler::WiFiNetworksChangedEvent(
210 const WiFiService::NetworkGuidList& network_guid_list) { 211 const WiFiService::NetworkGuidList& network_guid_list) {
211 std::vector<std::string> networks(network_guid_list.begin(), 212 std::vector<std::string> networks(network_guid_list.begin(),
212 network_guid_list.end()); 213 network_guid_list.end());
213 Send(new NetworkingPrivateMsg_NetworksChanged_Event(networks)); 214 Send(new NetworkingPrivateMsg_NetworksChanged_Event(networks));
214 } 215 }
215 216
216 } // namespace chrome 217 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/utility/wifi/wifi_service.h » ('j') | chrome/utility/wifi/wifi_service_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698