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 | 4 |
5 #ifndef CHROMEOS_DBUS_FAKE_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 ~FakeLeadershipDaemonManagerClient() override; | 21 ~FakeLeadershipDaemonManagerClient() override; |
22 | 22 |
23 // DBusClient overrides: | 23 // DBusClient overrides: |
24 void Init(dbus::Bus* bus) override; | 24 void Init(dbus::Bus* bus) override; |
25 | 25 |
26 // LeadershipDaemonManagerClient overrides: | 26 // LeadershipDaemonManagerClient overrides: |
27 void AddObserver(Observer* observer) override; | 27 void AddObserver(Observer* observer) override; |
28 void RemoveObserver(Observer* observer) override; | 28 void RemoveObserver(Observer* observer) override; |
29 void JoinGroup(const std::string& group, | 29 void JoinGroup(const std::string& group, |
30 const base::DictionaryValue& options, | 30 const base::DictionaryValue& options, |
31 const StringDBusMethodCallback& callback) override; | 31 const ObjectPathDBusMethodCallback& callback) override; |
32 void LeaveGroup(const std::string& object_path, | 32 void LeaveGroup(const std::string& object_path, |
33 const VoidDBusMethodCallback& callback) override; | 33 const VoidDBusMethodCallback& callback) override; |
34 void SetScore(const std::string& object_path, | 34 void SetScore(const std::string& object_path, |
35 int score, | 35 int score, |
36 const VoidDBusMethodCallback& callback) override; | 36 const VoidDBusMethodCallback& callback) override; |
37 void PokeLeader(const std::string& object_path, | 37 void PokeLeader(const std::string& object_path, |
38 const VoidDBusMethodCallback& callback) override; | 38 const VoidDBusMethodCallback& callback) override; |
39 void Ping(const StringDBusMethodCallback& callback) override; | 39 void Ping(const StringDBusMethodCallback& callback) override; |
40 const GroupProperties* GetGroupProperties( | 40 const GroupProperties* GetGroupProperties( |
41 const dbus::ObjectPath& object_path) override; | 41 const dbus::ObjectPath& object_path) override; |
42 | 42 |
43 private: | 43 private: |
44 DISALLOW_COPY_AND_ASSIGN(FakeLeadershipDaemonManagerClient); | 44 DISALLOW_COPY_AND_ASSIGN(FakeLeadershipDaemonManagerClient); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace chromeos | 47 } // namespace chromeos |
48 | 48 |
49 #endif // CHROMEOS_DBUS_FAKE_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ | 49 #endif // CHROMEOS_DBUS_FAKE_LEADERSHIP_DAEMON_MANAGER_CLIENT_H_ |
OLD | NEW |