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

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: Sync up to r231308 Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/utility/wifi/wifi_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/utility/wifi/wifi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698