Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / sync / test / integration / wifi_credentials_helper_chromeos.h
blob834e37e4e7bf179a4d91baa930c282e93a11a821
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_
8 #include "components/wifi_sync/wifi_credential.h"
10 namespace content {
11 class BrowserContext;
14 namespace wifi_credentials_helper {
16 namespace chromeos {
18 // Performs ChromeOS-specific setup.
19 void SetUpChromeOs();
21 // Performs ChromeOS-specific setup for a given sync client, given
22 // that client's BrowserContext. Should be called only after SetUpChromeOs.
23 void SetupClientForProfileChromeOs(
24 const content::BrowserContext* browser_context);
26 // Adds a WiFi credential to the ChromeOS networking backend,
27 // associating the credential with the ChromeOS networking state that
28 // corresponds to |browser_context|.
29 void AddWifiCredentialToProfileChromeOs(
30 const content::BrowserContext* browser_context,
31 const wifi_sync::WifiCredential& credential);
33 // Returns the ChromeOS WiFi credentials associated with |browser_context|.
34 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs(
35 const content::BrowserContext* profile);
37 } // namespace chromeos
39 } // namespace wifi_credentials_helper
41 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_