| Index: chromeos/network/favorite_state.h
|
| diff --git a/chromeos/network/favorite_state.h b/chromeos/network/favorite_state.h
|
| index 349b85b8a48803bf9b5af27a54869a39ccd41af2..a4d9634289cf6b95984a05002484c7d0e17ace63 100644
|
| --- a/chromeos/network/favorite_state.h
|
| +++ b/chromeos/network/favorite_state.h
|
| @@ -19,9 +19,10 @@ namespace chromeos {
|
| // networks).
|
| // Note: NetworkStateHandler will store an entry for each member of
|
| // Manager.ServiceCompleteList, even for visible entries that are not
|
| -// favorites. This is necessary to avoid unnecessarily re-requesting entries,
|
| -// and to limit the code complexity. The IsFavorite() accessor is used to skip
|
| -// entries that are not actually favorites.
|
| +// saved. This is necessary to avoid unnecessarily re-requesting entries,
|
| +// and to limit the code complexity. It is also convenient for tracking the
|
| +// complete list of "known" networks. The IsInProfile() accessor is used to
|
| +// skip entries that are not actually saved in a profile.
|
| class CHROMEOS_EXPORT FavoriteState : public ManagedState {
|
| public:
|
| explicit FavoriteState(const std::string& path);
|
| @@ -40,16 +41,25 @@ class CHROMEOS_EXPORT FavoriteState : public ManagedState {
|
| const std::string& guid() const { return guid_; }
|
|
|
| // Returns true if this is a favorite stored in a profile (see note above).
|
| - bool IsFavorite() const;
|
| + bool IsInProfile() const;
|
|
|
| // Returns true if the network properties are stored in a user profile.
|
| bool IsPrivate() const;
|
|
|
| + // Returns a specifier for identifying this network in the absence of a GUID.
|
| + std::string GetSpecifier() const;
|
| +
|
| + // Set the GUID. Called exclusively by NetworkStateHandler.
|
| + void SetGuid(const std::string& guid);
|
| +
|
| private:
|
| std::string profile_path_;
|
| NetworkUIData ui_data_;
|
| std::string guid_;
|
|
|
| + // Keep track of the secuirity for purposes of specifying wifi networks.
|
| + std::string security_;
|
| +
|
| // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler
|
| // provides proxy configuration. crbug.com/241775
|
| base::DictionaryValue proxy_config_;
|
|
|