| Index: chromeos/network/managed_network_configuration_handler_impl.h
|
| diff --git a/chromeos/network/managed_network_configuration_handler_impl.h b/chromeos/network/managed_network_configuration_handler_impl.h
|
| index fbe5b67e2625d8785399757989bbef3df674f886..89c817ab1890a1d7722077fe6105801e79ef6d17 100644
|
| --- a/chromeos/network/managed_network_configuration_handler_impl.h
|
| +++ b/chromeos/network/managed_network_configuration_handler_impl.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/memory/linked_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "chromeos/chromeos_export.h"
|
| #include "chromeos/network/managed_network_configuration_handler.h"
|
| @@ -33,9 +34,6 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
|
| public NetworkProfileObserver,
|
| public PolicyApplicator::ConfigurationHandler {
|
| public:
|
| - typedef std::map<std::string, const base::DictionaryValue*> GuidToPolicyMap;
|
| - typedef std::map<std::string, GuidToPolicyMap> UserToPoliciesMap;
|
| -
|
| virtual ~ManagedNetworkConfigurationHandlerImpl();
|
|
|
| // ManagedNetworkConfigurationHandler overrides
|
| @@ -70,9 +68,11 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
|
| const base::Closure& callback,
|
| const network_handler::ErrorCallback& error_callback) const OVERRIDE;
|
|
|
| - virtual void SetPolicy(onc::ONCSource onc_source,
|
| - const std::string& userhash,
|
| - const base::ListValue& network_configs_onc) OVERRIDE;
|
| + virtual void SetPolicy(
|
| + onc::ONCSource onc_source,
|
| + const std::string& userhash,
|
| + const base::ListValue& network_configs_onc,
|
| + const base::DictionaryValue& global_network_config) OVERRIDE;
|
|
|
| virtual const base::DictionaryValue* FindPolicyByGUID(
|
| const std::string userhash,
|
| @@ -91,11 +91,18 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
|
| virtual void CreateConfigurationFromPolicy(
|
| const base::DictionaryValue& shill_properties) OVERRIDE;
|
|
|
| + virtual void UpdateExistingConfigurationWithPropertiesFromPolicy(
|
| + const base::DictionaryValue& existing_properties,
|
| + const base::DictionaryValue& new_properties) OVERRIDE;
|
| +
|
| private:
|
| friend class ClientCertResolverTest;
|
| friend class NetworkHandler;
|
| friend class ManagedNetworkConfigurationHandlerTest;
|
|
|
| + struct Policies;
|
| + typedef std::map<std::string, linked_ptr<Policies> > UserToPoliciesMap;
|
| +
|
| ManagedNetworkConfigurationHandlerImpl();
|
|
|
| void Init(NetworkStateHandler* network_state_handler,
|
| @@ -108,9 +115,8 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
|
| const std::string& service_path,
|
| const base::DictionaryValue& shill_properties);
|
|
|
| - const GuidToPolicyMap* GetPoliciesForUser(const std::string& userhash) const;
|
| - const GuidToPolicyMap* GetPoliciesForProfile(
|
| - const NetworkProfile& profile) const;
|
| + const Policies* GetPoliciesForUser(const std::string& userhash) const;
|
| + const Policies* GetPoliciesForProfile(const NetworkProfile& profile) const;
|
|
|
| void OnPolicyApplied(const std::string& service_path);
|
|
|
|
|