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/sync_wifi/wifi_credential.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class BrowserContext; | 11 class BrowserContext; |
12 } | 12 } |
13 | 13 |
14 namespace wifi_credentials_helper { | 14 namespace wifi_credentials_helper { |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 // Performs ChromeOS-specific setup. | 18 // Performs ChromeOS-specific setup. |
19 void SetUpChromeOs(); | 19 void SetUpChromeOs(); |
20 | 20 |
21 // Performs ChromeOS-specific setup for a given sync client, given | 21 // Performs ChromeOS-specific setup for a given sync client, given |
22 // that client's BrowserContext. Should be called only after SetUpChromeOs. | 22 // that client's BrowserContext. Should be called only after SetUpChromeOs. |
23 void SetupClientForProfileChromeOs( | 23 void SetupClientForProfileChromeOs( |
24 const content::BrowserContext* browser_context); | 24 const content::BrowserContext* browser_context); |
25 | 25 |
26 // Adds a WiFi credential to the ChromeOS networking backend, | 26 // Adds a WiFi credential to the ChromeOS networking backend, |
27 // associating the credential with the ChromeOS networking state that | 27 // associating the credential with the ChromeOS networking state that |
28 // corresponds to |browser_context|. | 28 // corresponds to |browser_context|. |
29 void AddWifiCredentialToProfileChromeOs( | 29 void AddWifiCredentialToProfileChromeOs( |
30 const content::BrowserContext* browser_context, | 30 const content::BrowserContext* browser_context, |
31 const wifi_sync::WifiCredential& credential); | 31 const sync_wifi::WifiCredential& credential); |
32 | 32 |
33 // Returns the ChromeOS WiFi credentials associated with |browser_context|. | 33 // Returns the ChromeOS WiFi credentials associated with |browser_context|. |
34 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( | 34 sync_wifi::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( |
35 const content::BrowserContext* profile); | 35 const content::BrowserContext* profile); |
36 | 36 |
37 } // namespace chromeos | 37 } // namespace chromeos |
38 | 38 |
39 } // namespace wifi_credentials_helper | 39 } // namespace wifi_credentials_helper |
40 | 40 |
41 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS
_H_ | 41 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS
_H_ |
OLD | NEW |