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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // events needs to be sent. Notifications are posted on |message_loop_proxy|. | 111 // events needs to be sent. Notifications are posted on |message_loop_proxy|. |
112 virtual void SetEventObservers( | 112 virtual void SetEventObservers( |
113 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, | 113 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, |
114 const NetworkGuidListCallback& networks_changed_observer, | 114 const NetworkGuidListCallback& networks_changed_observer, |
115 const NetworkGuidListCallback& network_list_changed_observer) = 0; | 115 const NetworkGuidListCallback& network_list_changed_observer) = 0; |
116 | 116 |
117 // Request update of Connected Network information. Send |NetworksChanged| | 117 // Request update of Connected Network information. Send |NetworksChanged| |
118 // event on completion. | 118 // event on completion. |
119 virtual void RequestConnectedNetworkUpdate() = 0; | 119 virtual void RequestConnectedNetworkUpdate() = 0; |
120 | 120 |
| 121 // Get the SSID of the currently connected network, if any. |
| 122 virtual void GetConnectedNetworkSSID(std::string* ssid, |
| 123 std::string* error) = 0; |
| 124 |
121 protected: | 125 protected: |
122 WiFiService() {} | 126 WiFiService() {} |
123 | 127 |
124 // Error constants. | 128 // Error constants. |
125 static const char kErrorAssociateToNetwork[]; | 129 static const char kErrorAssociateToNetwork[]; |
126 static const char kErrorInvalidData[]; | 130 static const char kErrorInvalidData[]; |
127 static const char kErrorNotConfigured[]; | 131 static const char kErrorNotConfigured[]; |
128 static const char kErrorNotConnected[]; | 132 static const char kErrorNotConnected[]; |
129 static const char kErrorNotFound[]; | 133 static const char kErrorNotFound[]; |
130 static const char kErrorNotImplemented[]; | 134 static const char kErrorNotImplemented[]; |
131 static const char kErrorScanForNetworksWithName[]; | 135 static const char kErrorScanForNetworksWithName[]; |
132 static const char kErrorWiFiService[]; | 136 static const char kErrorWiFiService[]; |
133 | 137 |
134 private: | 138 private: |
135 DISALLOW_COPY_AND_ASSIGN(WiFiService); | 139 DISALLOW_COPY_AND_ASSIGN(WiFiService); |
136 }; | 140 }; |
137 | 141 |
138 } // namespace wifi | 142 } // namespace wifi |
139 | 143 |
140 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ | 144 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ |
OLD | NEW |