| 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 #include <vector> | 10 #include <vector> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Start connect to network identified by |network_guid|. Populates |error| | 91 // Start connect to network identified by |network_guid|. Populates |error| |
| 92 // on failure. | 92 // on failure. |
| 93 virtual void StartConnect(const std::string& network_guid, | 93 virtual void StartConnect(const std::string& network_guid, |
| 94 std::string* error) = 0; | 94 std::string* error) = 0; |
| 95 | 95 |
| 96 // Start disconnect from network identified by |network_guid|. Populates | 96 // Start disconnect from network identified by |network_guid|. Populates |
| 97 // |error| on failure. | 97 // |error| on failure. |
| 98 virtual void StartDisconnect(const std::string& network_guid, | 98 virtual void StartDisconnect(const std::string& network_guid, |
| 99 std::string* error) = 0; | 99 std::string* error) = 0; |
| 100 | 100 |
| 101 // Get WiFi Passphrase for network identified by |network_guid| from the |
| 102 // system (if it has one) and store it in |passphrase|. |
| 103 virtual void GetPassphraseFromSystem(const std::string& network_guid, |
| 104 std::string* passphrase, |
| 105 std::string* error) = 0; |
| 106 |
| 101 // Set observers to run when |NetworksChanged| and |NetworksListChanged| | 107 // Set observers to run when |NetworksChanged| and |NetworksListChanged| |
| 102 // events needs to be sent. Notifications are posted on |message_loop_proxy|. | 108 // events needs to be sent. Notifications are posted on |message_loop_proxy|. |
| 103 virtual void SetEventObservers( | 109 virtual void SetEventObservers( |
| 104 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, | 110 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, |
| 105 const NetworkGuidListCallback& networks_changed_observer, | 111 const NetworkGuidListCallback& networks_changed_observer, |
| 106 const NetworkGuidListCallback& network_list_changed_observer) = 0; | 112 const NetworkGuidListCallback& network_list_changed_observer) = 0; |
| 107 | 113 |
| 108 protected: | 114 protected: |
| 109 WiFiService() {} | 115 WiFiService() {} |
| 110 | 116 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 158 |
| 153 typedef std::list<NetworkProperties> NetworkList; | 159 typedef std::list<NetworkProperties> NetworkList; |
| 154 | 160 |
| 155 private: | 161 private: |
| 156 DISALLOW_COPY_AND_ASSIGN(WiFiService); | 162 DISALLOW_COPY_AND_ASSIGN(WiFiService); |
| 157 }; | 163 }; |
| 158 | 164 |
| 159 } // namespace wifi | 165 } // namespace wifi |
| 160 | 166 |
| 161 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ | 167 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ |
| OLD | NEW |