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

Side by Side Diff: chromeos/network/managed_network_configuration_handler_impl.h

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 class NetworkStateHandler; 30 class NetworkStateHandler;
31 31
32 class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl 32 class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
33 : public ManagedNetworkConfigurationHandler, 33 : public ManagedNetworkConfigurationHandler,
34 public NetworkProfileObserver, 34 public NetworkProfileObserver,
35 public PolicyApplicator::ConfigurationHandler { 35 public PolicyApplicator::ConfigurationHandler {
36 public: 36 public:
37 virtual ~ManagedNetworkConfigurationHandlerImpl(); 37 virtual ~ManagedNetworkConfigurationHandlerImpl();
38 38
39 // ManagedNetworkConfigurationHandler overrides 39 // ManagedNetworkConfigurationHandler overrides
40 virtual void AddObserver(NetworkPolicyObserver* observer) OVERRIDE; 40 virtual void AddObserver(NetworkPolicyObserver* observer) override;
41 virtual void RemoveObserver(NetworkPolicyObserver* observer) OVERRIDE; 41 virtual void RemoveObserver(NetworkPolicyObserver* observer) override;
42 42
43 virtual void GetProperties( 43 virtual void GetProperties(
44 const std::string& service_path, 44 const std::string& service_path,
45 const network_handler::DictionaryResultCallback& callback, 45 const network_handler::DictionaryResultCallback& callback,
46 const network_handler::ErrorCallback& error_callback) OVERRIDE; 46 const network_handler::ErrorCallback& error_callback) override;
47 47
48 virtual void GetManagedProperties( 48 virtual void GetManagedProperties(
49 const std::string& userhash, 49 const std::string& userhash,
50 const std::string& service_path, 50 const std::string& service_path,
51 const network_handler::DictionaryResultCallback& callback, 51 const network_handler::DictionaryResultCallback& callback,
52 const network_handler::ErrorCallback& error_callback) OVERRIDE; 52 const network_handler::ErrorCallback& error_callback) override;
53 53
54 virtual void SetProperties( 54 virtual void SetProperties(
55 const std::string& service_path, 55 const std::string& service_path,
56 const base::DictionaryValue& user_settings, 56 const base::DictionaryValue& user_settings,
57 const base::Closure& callback, 57 const base::Closure& callback,
58 const network_handler::ErrorCallback& error_callback) const OVERRIDE; 58 const network_handler::ErrorCallback& error_callback) const override;
59 59
60 virtual void CreateConfiguration( 60 virtual void CreateConfiguration(
61 const std::string& userhash, 61 const std::string& userhash,
62 const base::DictionaryValue& properties, 62 const base::DictionaryValue& properties,
63 const network_handler::StringResultCallback& callback, 63 const network_handler::StringResultCallback& callback,
64 const network_handler::ErrorCallback& error_callback) const OVERRIDE; 64 const network_handler::ErrorCallback& error_callback) const override;
65 65
66 virtual void RemoveConfiguration( 66 virtual void RemoveConfiguration(
67 const std::string& service_path, 67 const std::string& service_path,
68 const base::Closure& callback, 68 const base::Closure& callback,
69 const network_handler::ErrorCallback& error_callback) const OVERRIDE; 69 const network_handler::ErrorCallback& error_callback) const override;
70 70
71 virtual void SetPolicy( 71 virtual void SetPolicy(
72 onc::ONCSource onc_source, 72 onc::ONCSource onc_source,
73 const std::string& userhash, 73 const std::string& userhash,
74 const base::ListValue& network_configs_onc, 74 const base::ListValue& network_configs_onc,
75 const base::DictionaryValue& global_network_config) OVERRIDE; 75 const base::DictionaryValue& global_network_config) override;
76 76
77 virtual const base::DictionaryValue* FindPolicyByGUID( 77 virtual const base::DictionaryValue* FindPolicyByGUID(
78 const std::string userhash, 78 const std::string userhash,
79 const std::string& guid, 79 const std::string& guid,
80 onc::ONCSource* onc_source) const OVERRIDE; 80 onc::ONCSource* onc_source) const override;
81 81
82 virtual const base::DictionaryValue* GetGlobalConfigFromPolicy( 82 virtual const base::DictionaryValue* GetGlobalConfigFromPolicy(
83 const std::string userhash) const OVERRIDE; 83 const std::string userhash) const override;
84 84
85 virtual const base::DictionaryValue* FindPolicyByGuidAndProfile( 85 virtual const base::DictionaryValue* FindPolicyByGuidAndProfile(
86 const std::string& guid, 86 const std::string& guid,
87 const std::string& profile_path) const OVERRIDE; 87 const std::string& profile_path) const override;
88 88
89 // NetworkProfileObserver overrides 89 // NetworkProfileObserver overrides
90 virtual void OnProfileAdded(const NetworkProfile& profile) OVERRIDE; 90 virtual void OnProfileAdded(const NetworkProfile& profile) override;
91 virtual void OnProfileRemoved(const NetworkProfile& profile) OVERRIDE; 91 virtual void OnProfileRemoved(const NetworkProfile& profile) override;
92 92
93 // PolicyApplicator::ConfigurationHandler overrides 93 // PolicyApplicator::ConfigurationHandler overrides
94 virtual void CreateConfigurationFromPolicy( 94 virtual void CreateConfigurationFromPolicy(
95 const base::DictionaryValue& shill_properties) OVERRIDE; 95 const base::DictionaryValue& shill_properties) override;
96 96
97 virtual void UpdateExistingConfigurationWithPropertiesFromPolicy( 97 virtual void UpdateExistingConfigurationWithPropertiesFromPolicy(
98 const base::DictionaryValue& existing_properties, 98 const base::DictionaryValue& existing_properties,
99 const base::DictionaryValue& new_properties) OVERRIDE; 99 const base::DictionaryValue& new_properties) override;
100 100
101 virtual void OnPoliciesApplied() OVERRIDE; 101 virtual void OnPoliciesApplied() override;
102 102
103 private: 103 private:
104 friend class ClientCertResolverTest; 104 friend class ClientCertResolverTest;
105 friend class ManagedNetworkConfigurationHandlerTest; 105 friend class ManagedNetworkConfigurationHandlerTest;
106 friend class NetworkConnectionHandlerTest; 106 friend class NetworkConnectionHandlerTest;
107 friend class NetworkHandler; 107 friend class NetworkHandler;
108 108
109 struct Policies; 109 struct Policies;
110 typedef std::map<std::string, linked_ptr<Policies> > UserToPoliciesMap; 110 typedef std::map<std::string, linked_ptr<Policies> > UserToPoliciesMap;
111 typedef base::Callback<void(const std::string& service_path, 111 typedef base::Callback<void(const std::string& service_path,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // For Shill client callbacks 183 // For Shill client callbacks
184 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> 184 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl>
185 weak_ptr_factory_; 185 weak_ptr_factory_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); 187 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl);
188 }; 188 };
189 189
190 } // namespace chromeos 190 } // namespace chromeos
191 191
192 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ 192 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698