OLD | NEW |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const DictionaryResultCallback& callback, | 104 const DictionaryResultCallback& callback, |
105 const ErrorCallback& error_callback) = 0; | 105 const ErrorCallback& error_callback) = 0; |
106 | 106 |
107 // Set Properties of network identified by |network_guid|. Run |callback| on | 107 // Set Properties of network identified by |network_guid|. Run |callback| on |
108 // success, |error_callback| on failure. Not implemented except unit tests. | 108 // success, |error_callback| on failure. Not implemented except unit tests. |
109 virtual void SetProperties(const std::string& network_guid, | 109 virtual void SetProperties(const std::string& network_guid, |
110 const base::DictionaryValue& properties, | 110 const base::DictionaryValue& properties, |
111 const StringResultCallback& callback, | 111 const StringResultCallback& callback, |
112 const ErrorCallback& error_callback) = 0; | 112 const ErrorCallback& error_callback) = 0; |
113 | 113 |
114 // Get list of visible networks. Run |callback| on success, |error_callback| | 114 // Get list of visible networks of |network_type|. Run |callback| on success, |
115 // on failure. | 115 // |error_callback| on failure. |
116 virtual void GetVisibleNetworks(const NetworkListCallback& callback, | 116 virtual void GetVisibleNetworks(const std::string& network_type, |
| 117 const NetworkListCallback& callback, |
117 const ErrorCallback& error_callback) = 0; | 118 const ErrorCallback& error_callback) = 0; |
118 | 119 |
119 // Request network scan. Send |NetworkListChanged| event on completion. | 120 // Request network scan. Send |NetworkListChanged| event on completion. |
120 virtual void RequestNetworkScan() = 0; | 121 virtual void RequestNetworkScan() = 0; |
121 | 122 |
122 // Start connect to network identified by |network_guid|. Run |callback| on | 123 // Start connect to network identified by |network_guid|. Run |callback| on |
123 // success, |error_callback| on failure. Send |NetworksChanged| event | 124 // success, |error_callback| on failure. Send |NetworksChanged| event |
124 // on completion. | 125 // on completion. |
125 virtual void StartConnect(const std::string& network_guid, | 126 virtual void StartConnect(const std::string& network_guid, |
126 const StringResultCallback& callback, | 127 const StringResultCallback& callback, |
(...skipping 21 matching lines...) Expand all Loading... |
148 static WiFiService* CreateServiceMock(); | 149 static WiFiService* CreateServiceMock(); |
149 | 150 |
150 protected: | 151 protected: |
151 WiFiService() {} | 152 WiFiService() {} |
152 | 153 |
153 private: | 154 private: |
154 DISALLOW_COPY_AND_ASSIGN(WiFiService); | 155 DISALLOW_COPY_AND_ASSIGN(WiFiService); |
155 }; | 156 }; |
156 } // namespace wifi | 157 } // namespace wifi |
157 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ | 158 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ |
OLD | NEW |