OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHILL_PROPERTY_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 typedef std::map<std::string, ShillPropertyObserver*> | 44 typedef std::map<std::string, ShillPropertyObserver*> |
45 ShillPropertyObserverMap; | 45 ShillPropertyObserverMap; |
46 | 46 |
47 class CHROMEOS_EXPORT Listener { | 47 class CHROMEOS_EXPORT Listener { |
48 public: | 48 public: |
49 // Called when the entries in a managed list have changed. | 49 // Called when the entries in a managed list have changed. |
50 virtual void UpdateManagedList(ManagedState::ManagedType type, | 50 virtual void UpdateManagedList(ManagedState::ManagedType type, |
51 const base::ListValue& entries) = 0; | 51 const base::ListValue& entries) = 0; |
52 | 52 |
53 // Called when the entries in the visible network list have changed. | |
54 virtual void UpdateVisibleNetworks(const base::ListValue& entries) = 0; | |
55 | |
56 // Called when the properties for a managed state have changed. | 53 // Called when the properties for a managed state have changed. |
57 virtual void UpdateManagedStateProperties( | 54 virtual void UpdateManagedStateProperties( |
58 ManagedState::ManagedType type, | 55 ManagedState::ManagedType type, |
59 const std::string& path, | 56 const std::string& path, |
60 const base::DictionaryValue& properties) = 0; | 57 const base::DictionaryValue& properties) = 0; |
61 | 58 |
62 // Called when the list of profiles changes. | 59 // Called when the list of profiles changes. |
63 virtual void ProfileListChanged() = 0; | 60 virtual void ProfileListChanged() = 0; |
64 | 61 |
65 // Called when a property for a watched network service has changed. | 62 // Called when a property for a watched network service has changed. |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 std::set<std::string> enabling_technologies_; | 238 std::set<std::string> enabling_technologies_; |
242 std::set<std::string> uninitialized_technologies_; | 239 std::set<std::string> uninitialized_technologies_; |
243 | 240 |
244 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); | 241 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); |
245 }; | 242 }; |
246 | 243 |
247 } // namespace internal | 244 } // namespace internal |
248 } // namespace chromeos | 245 } // namespace chromeos |
249 | 246 |
250 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ | 247 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
OLD | NEW |