OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "chromeos/chromeos_export.h" | 16 #include "chromeos/chromeos_export.h" |
17 #include "chromeos/network/managed_network_configuration_handler.h" | 17 #include "chromeos/network/managed_network_configuration_handler.h" |
18 #include "chromeos/network/network_handler_callbacks.h" | 18 #include "chromeos/network/network_handler_callbacks.h" |
19 #include "chromeos/network/network_profile_observer.h" | 19 #include "chromeos/network/network_profile_observer.h" |
20 #include "chromeos/network/policy_applicator.h" | 20 #include "chromeos/network/policy_applicator.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class DictionaryValue; | 23 class DictionaryValue; |
24 } | 24 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 friend class ClientCertResolverTest; | 111 friend class ClientCertResolverTest; |
112 friend class ManagedNetworkConfigurationHandlerTest; | 112 friend class ManagedNetworkConfigurationHandlerTest; |
113 friend class NetworkConnectionHandlerTest; | 113 friend class NetworkConnectionHandlerTest; |
114 friend class NetworkHandler; | 114 friend class NetworkHandler; |
115 friend class ProhibitedTechnologiesHandlerTest; | 115 friend class ProhibitedTechnologiesHandlerTest; |
116 | 116 |
117 struct Policies; | 117 struct Policies; |
118 typedef base::Callback<void(const std::string& service_path, | 118 typedef base::Callback<void(const std::string& service_path, |
119 scoped_ptr<base::DictionaryValue> properties)> | 119 scoped_ptr<base::DictionaryValue> properties)> |
120 GetDevicePropertiesCallback; | 120 GetDevicePropertiesCallback; |
121 typedef std::map<std::string, linked_ptr<Policies> > UserToPoliciesMap; | 121 typedef std::map<std::string, scoped_ptr<Policies>> UserToPoliciesMap; |
122 typedef std::map<std::string, linked_ptr<PolicyApplicator>> | 122 typedef std::map<std::string, scoped_ptr<PolicyApplicator>> |
123 UserToPolicyApplicatorMap; | 123 UserToPolicyApplicatorMap; |
124 typedef std::map<std::string, std::set<std::string>> | 124 typedef std::map<std::string, std::set<std::string>> |
125 UserToModifiedPoliciesMap; | 125 UserToModifiedPoliciesMap; |
126 | 126 |
127 ManagedNetworkConfigurationHandlerImpl(); | 127 ManagedNetworkConfigurationHandlerImpl(); |
128 | 128 |
129 // Handlers may be NULL in tests so long as they do not execute any paths | 129 // Handlers may be NULL in tests so long as they do not execute any paths |
130 // that require the handlers. | 130 // that require the handlers. |
131 void Init(NetworkStateHandler* network_state_handler, | 131 void Init(NetworkStateHandler* network_state_handler, |
132 NetworkProfileHandler* network_profile_handler, | 132 NetworkProfileHandler* network_profile_handler, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // For Shill client callbacks | 220 // For Shill client callbacks |
221 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> | 221 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> |
222 weak_ptr_factory_; | 222 weak_ptr_factory_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); | 224 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); |
225 }; | 225 }; |
226 | 226 |
227 } // namespace chromeos | 227 } // namespace chromeos |
228 | 228 |
229 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 229 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
OLD | NEW |