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_DBUS_SHILL_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Does not create an actual profile in the ProfileClient but update the | 51 // Does not create an actual profile in the ProfileClient but update the |
52 // profiles list and sends a notification to observers. This should only be | 52 // profiles list and sends a notification to observers. This should only be |
53 // called by the ProfileStub. In all other cases, use | 53 // called by the ProfileStub. In all other cases, use |
54 // ShillProfileClient::TestInterface::AddProfile. | 54 // ShillProfileClient::TestInterface::AddProfile. |
55 virtual void AddProfile(const std::string& profile_path) = 0; | 55 virtual void AddProfile(const std::string& profile_path) = 0; |
56 | 56 |
57 // Used to reset all properties; does not notify observers. | 57 // Used to reset all properties; does not notify observers. |
58 virtual void ClearProperties() = 0; | 58 virtual void ClearProperties() = 0; |
59 | 59 |
| 60 // Set manager property. |
| 61 virtual void SetManagerProperty(const std::string& key, |
| 62 const base::Value& value) = 0; |
| 63 |
60 // Add/Remove/ClearService should only be called from ShillServiceClient. | 64 // Add/Remove/ClearService should only be called from ShillServiceClient. |
61 virtual void AddManagerService(const std::string& service_path, | 65 virtual void AddManagerService(const std::string& service_path, |
62 bool add_to_visible_list, | 66 bool add_to_visible_list, |
63 bool add_to_watch_list) = 0; | 67 bool add_to_watch_list) = 0; |
64 virtual void RemoveManagerService(const std::string& service_path) = 0; | 68 virtual void RemoveManagerService(const std::string& service_path) = 0; |
65 virtual void ClearManagerServices() = 0; | 69 virtual void ClearManagerServices() = 0; |
66 | 70 |
67 // Called by ShillServiceClient when a service's State property changes. | 71 // Called by ShillServiceClient when a service's State property changes. |
68 // Services are sorted first by Active vs. Inactive State, then by Type. | 72 // Services are sorted first by Active vs. Inactive State, then by Type. |
69 virtual void SortManagerServices() = 0; | 73 virtual void SortManagerServices() = 0; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Create() should be used instead. | 214 // Create() should be used instead. |
211 ShillManagerClient(); | 215 ShillManagerClient(); |
212 | 216 |
213 private: | 217 private: |
214 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 218 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
215 }; | 219 }; |
216 | 220 |
217 } // namespace chromeos | 221 } // namespace chromeos |
218 | 222 |
219 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 223 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |