#ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_
#define CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_
+#include <set>
#include <string>
#include <vector>
// ShillPropertyChangedObserver overrides
virtual void OnPropertyChanged(const std::string& name,
- const base::Value& value) OVERRIDE;
+ const base::Value& value) override;
void GetProfilePropertiesCallback(const std::string& profile_path,
const base::DictionaryValue& properties);
static std::string GetSharedProfilePath();
protected:
+ friend class AutoConnectHandlerTest;
friend class ClientCertResolverTest;
friend class NetworkConnectionHandlerTest;
friend class NetworkHandler;
private:
ProfileList profiles_;
+
+ // Contains the profile paths for which properties were requested. Once the
+ // properties are retrieved and the path is still in this set, a new profile
+ // object is created.
+ std::set<std::string> pending_profile_creations_;
ObserverList<NetworkProfileObserver> observers_;
// For Shill client callbacks