| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_WIFI_SYNC_WIFI_CONFIG_DELEGATE_H_ | 5 #ifndef COMPONENTS_SYNC_WIFI_WIFI_CONFIG_DELEGATE_H_ |
| 6 #define COMPONENTS_WIFI_SYNC_WIFI_CONFIG_DELEGATE_H_ | 6 #define COMPONENTS_SYNC_WIFI_WIFI_CONFIG_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace wifi_sync { | 8 namespace sync_wifi { |
| 9 | 9 |
| 10 class WifiCredential; | 10 class WifiCredential; |
| 11 | 11 |
| 12 // Interface for platform-specific delegates, which provide the ability | 12 // Interface for platform-specific delegates, which provide the ability |
| 13 // to configure local WiFi networks settings. | 13 // to configure local WiFi networks settings. |
| 14 class WifiConfigDelegate { | 14 class WifiConfigDelegate { |
| 15 public: | 15 public: |
| 16 virtual ~WifiConfigDelegate() {} | 16 virtual ~WifiConfigDelegate() {} |
| 17 | 17 |
| 18 // Adds a local network configuration entry for a WiFi network using | 18 // Adds a local network configuration entry for a WiFi network using |
| 19 // the properties of |network_credential|. If the entry already | 19 // the properties of |network_credential|. If the entry already |
| 20 // exists, the entry's passphrase is updated. | 20 // exists, the entry's passphrase is updated. |
| 21 virtual void AddToLocalNetworks( | 21 virtual void AddToLocalNetworks(const WifiCredential& network_credential) = 0; |
| 22 const WifiCredential& network_credential) = 0; | |
| 23 }; | 22 }; |
| 24 | 23 |
| 25 } // namespace wifi_sync | 24 } // namespace sync_wifi |
| 26 | 25 |
| 27 #endif // COMPONENTS_WIFI_SYNC_WIFI_CONFIG_DELEGATE_H_ | 26 #endif // COMPONENTS_SYNC_WIFI_WIFI_CONFIG_DELEGATE_H_ |
| OLD | NEW |