| OLD | NEW |
| 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 #ifndef CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ | 5 #ifndef CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ |
| 6 #define CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ | 6 #define CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const WiFiService::NetworkProperties& properties); | 58 const WiFiService::NetworkProperties& properties); |
| 59 | 59 |
| 60 // Set properties of network identified by |network_guid|. | 60 // Set properties of network identified by |network_guid|. |
| 61 void OnSetPropertiesStart(int message_id, | 61 void OnSetPropertiesStart(int message_id, |
| 62 const std::string& network_guid, | 62 const std::string& network_guid, |
| 63 const base::DictionaryValue& properties); | 63 const base::DictionaryValue& properties); |
| 64 | 64 |
| 65 // Callback from |WiFiService| to report set properties success back to | 65 // Callback from |WiFiService| to report set properties success back to |
| 66 // browser process. | 66 // browser process. |
| 67 void WiFiSetPropertiesSucceeded(int message_id, | 67 void WiFiSetPropertiesSucceeded(int message_id, |
| 68 const std::string& network_guid); | 68 const std::string& network_guid); |
| 69 | 69 |
| 70 // Start connect to network identified by |network_guid|. Does not wait for | 70 // Start connect to network identified by |network_guid|. Does not wait for |
| 71 // connect to succeed. If another network is connected, it will be remembered | 71 // connect to succeed. If another network is connected, it will be remembered |
| 72 // and disconnected prior to connect. | 72 // and disconnected prior to connect. |
| 73 void OnStartConnectStart(int message_id, const std::string& network_guid); | 73 void OnStartConnectStart(int message_id, const std::string& network_guid); |
| 74 | 74 |
| 75 // Callback from |WiFiService| to report start connect success back to | 75 // Callback from |WiFiService| to report start connect success back to |
| 76 // browser process. Does not wait for connect to actually succeed. If/When | 76 // browser process. Does not wait for connect to actually succeed. If/When |
| 77 // connect succeeds the |NetworksChanged| event will be generated. | 77 // connect succeeds the |NetworksChanged| event will be generated. |
| 78 void WiFiStartConnectSucceeded(int message_id, | 78 void WiFiStartConnectSucceeded(int message_id, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // Platform-specific WiFi service. | 114 // Platform-specific WiFi service. |
| 115 scoped_ptr<wifi::WiFiService> wifi_service_; | 115 scoped_ptr<wifi::WiFiService> wifi_service_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateHandler); | 117 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateHandler); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace chrome | 120 } // namespace chrome |
| 121 | 121 |
| 122 #endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ | 122 #endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ |
| OLD | NEW |