| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROMEOS_DBUS_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ | 4 #ifndef CHROMEOS_DBUS_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ |
| 5 #define CHROMEOS_DBUS_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ | 5 #define CHROMEOS_DBUS_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // determine which group is issuing the event. | 78 // determine which group is issuing the event. |
| 79 virtual void AddObserver(Observer* observer) = 0; | 79 virtual void AddObserver(Observer* observer) = 0; |
| 80 virtual void RemoveObserver(Observer* observer) = 0; | 80 virtual void RemoveObserver(Observer* observer) = 0; |
| 81 | 81 |
| 82 // Calls JoinGroup method. | 82 // Calls JoinGroup method. |
| 83 // |callback| is called with its |call_status| argument set to | 83 // |callback| is called with its |call_status| argument set to |
| 84 // DBUS_METHOD_CALL_SUCCESS if the method call succeeds. Otherwise, | 84 // DBUS_METHOD_CALL_SUCCESS if the method call succeeds. Otherwise, |
| 85 // |callback| is called with |call_status| set to DBUS_METHOD_CALL_FAILURE. | 85 // |callback| is called with |call_status| set to DBUS_METHOD_CALL_FAILURE. |
| 86 virtual void JoinGroup(const std::string& group, | 86 virtual void JoinGroup(const std::string& group, |
| 87 const base::DictionaryValue& options, | 87 const base::DictionaryValue& options, |
| 88 const StringDBusMethodCallback& callback) = 0; | 88 const ObjectPathDBusMethodCallback& callback) = 0; |
| 89 | 89 |
| 90 // Calls LeaveGroup method. | 90 // Calls LeaveGroup method. |
| 91 // |callback| is called with its |call_status| argument set to | 91 // |callback| is called with its |call_status| argument set to |
| 92 // DBUS_METHOD_CALL_SUCCESS if the method call succeeds. Otherwise, | 92 // DBUS_METHOD_CALL_SUCCESS if the method call succeeds. Otherwise, |
| 93 // |callback| is called with |call_status| set to DBUS_METHOD_CALL_FAILURE. | 93 // |callback| is called with |call_status| set to DBUS_METHOD_CALL_FAILURE. |
| 94 virtual void LeaveGroup(const std::string& object_path, | 94 virtual void LeaveGroup(const std::string& object_path, |
| 95 const VoidDBusMethodCallback& callback) = 0; | 95 const VoidDBusMethodCallback& callback) = 0; |
| 96 | 96 |
| 97 // Calls SetScore method. | 97 // Calls SetScore method. |
| 98 // |callback| is called with its |call_status| argument set to | 98 // |callback| is called with its |call_status| argument set to |
| (...skipping 25 matching lines...) Expand all Loading... |
| 124 // Create() should be used instead. | 124 // Create() should be used instead. |
| 125 LeadershipDaemonManagerClient(); | 125 LeadershipDaemonManagerClient(); |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 DISALLOW_COPY_AND_ASSIGN(LeadershipDaemonManagerClient); | 128 DISALLOW_COPY_AND_ASSIGN(LeadershipDaemonManagerClient); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace chromeos | 131 } // namespace chromeos |
| 132 | 132 |
| 133 #endif // CHROMEOS_DBUS_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ | 133 #endif // CHROMEOS_DBUS_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ |
| OLD | NEW |