Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ | |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ | |
| 7 | |
| 8 #include "components/wifi_sync/wifi_security_class.h" | |
| 9 | |
| 10 class Profile; | |
|
stevenjb
2014/11/12 21:30:44
nit: WS
mukesh agrawal
2014/11/13 16:24:58
Done.
| |
| 11 namespace wifi_sync { | |
| 12 class WifiCredentialSyncableService; | |
| 13 } | |
| 14 | |
| 15 namespace wifi_credentials_helper { | |
| 16 | |
| 17 // Used to access the WiFi credentials within a particular sync profile. | |
| 18 wifi_sync::WifiCredentialSyncableService* | |
| 19 GetServiceForBrowserContext(int profile_index); | |
| 20 | |
| 21 // Used to access the WiFi credentials within the verifier sync profile. | |
| 22 wifi_sync::WifiCredentialSyncableService* GetVerifierService(); | |
| 23 | |
| 24 // Compare the WifiCredentialSyncableService for a given profile to | |
| 25 // the verifier. Returns true iff their user-visible fields match. | |
| 26 bool ServiceMatchesVerifier(int profile_index); | |
| 27 | |
| 28 // Returns true iff all WifiCredentialSyncableServices match with the verifier. | |
| 29 bool AllServicesMatch(); | |
| 30 | |
| 31 } // namespace wifi_credentials_helper | |
| 32 | |
| 33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ | |
| OLD | NEW |