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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 const std::string& check_portal_list) = 0; | 76 const std::string& check_portal_list) = 0; |
77 | 77 |
78 // Called when a technology list changes. | 78 // Called when a technology list changes. |
79 virtual void TechnologyListChanged() = 0; | 79 virtual void TechnologyListChanged() = 0; |
80 | 80 |
81 // Called when a managed state list has changed, after properties for any | 81 // Called when a managed state list has changed, after properties for any |
82 // new entries in the list have been received and | 82 // new entries in the list have been received and |
83 // UpdateManagedStateProperties has been called for each new entry. | 83 // UpdateManagedStateProperties has been called for each new entry. |
84 virtual void ManagedStateListChanged(ManagedState::ManagedType type) = 0; | 84 virtual void ManagedStateListChanged(ManagedState::ManagedType type) = 0; |
85 | 85 |
| 86 // Called when the default network service changes. |
| 87 virtual void DefaultNetworkServiceChanged( |
| 88 const std::string& service_path) = 0; |
| 89 |
86 protected: | 90 protected: |
87 virtual ~Listener() {} | 91 virtual ~Listener() {} |
88 }; | 92 }; |
89 | 93 |
90 explicit ShillPropertyHandler(Listener* listener); | 94 explicit ShillPropertyHandler(Listener* listener); |
91 virtual ~ShillPropertyHandler(); | 95 virtual ~ShillPropertyHandler(); |
92 | 96 |
93 // Sets up the observer and calls UpdateManagerProperties(). | 97 // Sets up the observer and calls UpdateManagerProperties(). |
94 void Init(); | 98 void Init(); |
95 | 99 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 std::set<std::string> enabling_technologies_; | 230 std::set<std::string> enabling_technologies_; |
227 std::set<std::string> uninitialized_technologies_; | 231 std::set<std::string> uninitialized_technologies_; |
228 | 232 |
229 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); | 233 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); |
230 }; | 234 }; |
231 | 235 |
232 } // namespace internal | 236 } // namespace internal |
233 } // namespace chromeos | 237 } // namespace chromeos |
234 | 238 |
235 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ | 239 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ |
OLD | NEW |