OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_ |
7 | 7 |
8 #include "components/wifi_sync/wifi_credential.h" | 8 #include "components/wifi_sync/wifi_credential.h" |
9 | 9 |
10 class Profile; | 10 class Profile; |
11 | 11 |
12 namespace wifi_credentials_helper { | 12 namespace wifi_credentials_helper { |
13 | 13 |
| 14 namespace chromeos { |
| 15 |
| 16 // Performs ChromeOS-specific setup. |
| 17 void SetUpChromeOs(); |
| 18 |
| 19 // Performs ChromeOS-specific setup for a given sync client, given |
| 20 // that client's Profile. |
| 21 bool SetupClientForProfileChromeOs(const Profile* profile); |
| 22 |
| 23 // Adds a WiFi credential to the ChromeOS networking backend, |
| 24 // associating the credential with the ChromeOS networking state that |
| 25 // corresonds to |profile|. |
| 26 void AddWifiCredentialToProfileChromeOs( |
| 27 Profile* profile, const wifi_sync::WifiCredential& credential); |
| 28 |
14 // Returns the ChromeOS WiFi credentials associated with |profile|. | 29 // Returns the ChromeOS WiFi credentials associated with |profile|. |
15 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( | 30 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( |
16 const Profile* profile); | 31 const Profile* profile); |
17 | 32 |
| 33 } // namespace chromeos |
| 34 |
18 } // namespace wifi_credentials_helper | 35 } // namespace wifi_credentials_helper |
19 | 36 |
20 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS
_H_ | 37 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS
_H_ |
OLD | NEW |