Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: components/wifi_sync/wifi_credential.h

Issue 836363002: wifi_sync: add WifiConfigDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.1-network-state-helper
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_H_ 5 #ifndef COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_H_
6 #define COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_H_ 6 #define COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 29 matching lines...) Expand all
40 // purposes. The string will not include the credential's passphrase. 40 // purposes. The string will not include the credential's passphrase.
41 std::string ToString() const; 41 std::string ToString() const;
42 42
43 // Returns true if credential |a| comes before credential |b|. 43 // Returns true if credential |a| comes before credential |b|.
44 static bool IsLessThan(const WifiCredential& a, const WifiCredential& b); 44 static bool IsLessThan(const WifiCredential& a, const WifiCredential& b);
45 45
46 // Returns an empty set of WifiCredentials, with the IsLessThan 46 // Returns an empty set of WifiCredentials, with the IsLessThan
47 // ordering function plumbed in. 47 // ordering function plumbed in.
48 static CredentialSet MakeSet(); 48 static CredentialSet MakeSet();
49 49
50 // Returns |ssid| as an SsidBytes instance. This convenience
51 // function simplifies some tests, which need to instantiate
52 // SsidBytes from string literals.
53 static SsidBytes MakeSsidBytes(const std::string& ssid);
54
50 private: 55 private:
51 // The WiFi network's SSID. 56 // The WiFi network's SSID.
52 const SsidBytes ssid_; 57 const SsidBytes ssid_;
53 // The WiFi network's security class (e.g. WEP, PSK). 58 // The WiFi network's security class (e.g. WEP, PSK).
54 const WifiSecurityClass security_class_; 59 const WifiSecurityClass security_class_;
55 // The passphrase for connecting to the network. 60 // The passphrase for connecting to the network.
56 const std::string passphrase_; 61 const std::string passphrase_;
57 }; 62 };
58 63
59 } // namespace wifi_sync 64 } // namespace wifi_sync
60 65
61 #endif // COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_H_ 66 #endif // COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_H_
OLDNEW
« no previous file with comments | « components/wifi_sync/wifi_config_delegate_factory_chromeos.cc ('k') | components/wifi_sync/wifi_credential.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698