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 { |
stevenjb
2015/01/28 21:29:43
I would add a 'chromeos' namespace here, just to b
mukesh agrawal
2015/01/28 22:55:11
Done.
| |
13 | 13 |
14 // Performs ChromeOS-specific setup. | |
15 void SetUpChromeOs(); | |
16 | |
17 // Performs ChromeOS-specific setup for a given sync client, given | |
18 // that client's Profile. | |
19 bool SetupClientForProfileChromeOs(const Profile* profile); | |
20 | |
21 // Adds a WiFi credential to the ChromeOS networking backend, | |
22 // associating the credential with the ChromeOS networking state that | |
23 // corresonds to |profile|. | |
24 void AddWifiCredentialToProfileChromeOs( | |
25 Profile* profile, const wifi_sync::WifiCredential& credential); | |
26 | |
14 // Returns the ChromeOS WiFi credentials associated with |profile|. | 27 // Returns the ChromeOS WiFi credentials associated with |profile|. |
15 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( | 28 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( |
16 const Profile* profile); | 29 const Profile* profile); |
17 | 30 |
18 } // namespace wifi_credentials_helper | 31 } // namespace wifi_credentials_helper |
19 | 32 |
20 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS _H_ | 33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS _H_ |
OLD | NEW |