Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: chromeos/dbus/fake_leadership_daemon_manager_client.h

Issue 972983003: ChromeOS DBus: leaderd API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698