OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMEOS_ARC_BRIDGE_CLIENT_H_ | |
6 #define CHROMEOS_ARC_BRIDGE_CLIENT_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "chromeos/chromeos_export.h" | |
10 #include "chromeos/dbus/dbus_client.h" | |
11 #include "chromeos/dbus/dbus_method_call_status.h" | |
12 | |
13 namespace dbus { | |
14 class ObjectPath; | |
15 } | |
16 | |
17 namespace chromeos { | |
18 | |
19 // Client for the Arc Bridge Service | |
20 class CHROMEOS_EXPORT ArcBridgeClient : public DBusClient { | |
21 public: | |
22 ~ArcBridgeClient() override; | |
23 | |
24 // Factory function, creates a new instance and returns ownership. | |
25 // For normal usage, access the singleton via DBusThreadManager::Get(). | |
26 static ArcBridgeClient* Create(); | |
27 | |
28 // Calls Ping method. |callback| is called after the method call succeeds. | |
29 virtual void Ping(const VoidDBusMethodCallback& callback) = 0; | |
30 | |
31 protected: | |
32 // Create() should be used instead. | |
33 ArcBridgeClient(); | |
34 | |
35 private: | |
36 DISALLOW_COPY_AND_ASSIGN(ArcBridgeClient); | |
37 }; | |
38 | |
39 } // namespace chromeos | |
40 | |
41 #endif // CHROMEOS_ARC_BRIDGE_CLIENT_H_ | |
OLD | NEW |