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

Side by Side Diff: chrome/utility/wifi/wifi_service.h

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, 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 5 #ifndef CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
6 #define CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 6 #define CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Get list of visible networks. Run |callback| on success, |error_callback| 114 // Get list of visible networks. Run |callback| on success, |error_callback|
115 // on failure. 115 // on failure.
116 virtual void GetVisibleNetworks(const NetworkListCallback& callback, 116 virtual void GetVisibleNetworks(const NetworkListCallback& callback,
117 const ErrorCallback& error_callback) = 0; 117 const ErrorCallback& error_callback) = 0;
118 118
119 // Request network scan. Send |NetworkListChanged| event on completion. 119 // Request network scan. Send |NetworkListChanged| event on completion.
120 virtual void RequestNetworkScan() = 0; 120 virtual void RequestNetworkScan() = 0;
121 121
122 // Start connect to network identified by |network_guid|. Run |callback| on 122 // Start connect to network identified by |network_guid|. Run |callback| on
123 // success, |error_callback| on failure. Send |NetworksChanged| event 123 // success, |error_callback| on failure. Send |NetworksChanged| event
124 // on completion. 124 // on completion. If |frequency| is not 0 (kFrequencyUnknown), then only
125 // connect to BSS running on that frequency (2400 or 5000).
125 virtual void StartConnect(const std::string& network_guid, 126 virtual void StartConnect(const std::string& network_guid,
127 Frequency frequency,
126 const StringResultCallback& callback, 128 const StringResultCallback& callback,
127 const ErrorCallback& error_callback) = 0; 129 const ErrorCallback& error_callback) = 0;
128 130
129 // Start disconnect from network identified by |network_guid|. Run |callback| 131 // Start disconnect from network identified by |network_guid|. Run |callback|
130 // on success, |error_callback| on failure. Send |NetworksChanged| event on 132 // on success, |error_callback| on failure. Send |NetworksChanged| event on
131 // completion. 133 // completion.
132 virtual void StartDisconnect(const std::string& network_guid, 134 virtual void StartDisconnect(const std::string& network_guid,
133 const StringResultCallback& callback, 135 const StringResultCallback& callback,
134 const ErrorCallback& error_callback) = 0; 136 const ErrorCallback& error_callback) = 0;
135 137
(...skipping 12 matching lines...) Expand all
148 static WiFiService* CreateServiceMock(); 150 static WiFiService* CreateServiceMock();
149 151
150 protected: 152 protected:
151 WiFiService() {} 153 WiFiService() {}
152 154
153 private: 155 private:
154 DISALLOW_COPY_AND_ASSIGN(WiFiService); 156 DISALLOW_COPY_AND_ASSIGN(WiFiService);
155 }; 157 };
156 } // namespace wifi 158 } // namespace wifi
157 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 159 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698