Use PlaybackToMemory for BitmapRasterWorkerPool playback
[chromium-blink-merge.git] / chromeos / dbus / privet_daemon_client.h
blob070a17659bf437083b7b6a80bfbcf1ebd2bba2a1
1 // Copyright 2014 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.
5 #ifndef CHROMEOS_DBUS_PRIVET_DAEMON_CLIENT_H_
6 #define CHROMEOS_DBUS_PRIVET_DAEMON_CLIENT_H_
8 #include <string>
10 #include "base/callback_forward.h"
11 #include "base/macros.h"
12 #include "chromeos/chromeos_export.h"
13 #include "chromeos/dbus/dbus_client.h"
15 // TODO(jamescook): The DBus interface is still being defined by the privetd
16 // team. Move to third_party/cros_system_api/dbus/service_constants.h when the
17 // interface is finalized.
18 namespace privetd {
19 const char kPrivetdInterface[] = "org.chromium.privetd";
20 const char kPrivetdServicePath[] = "/org/chromium/privetd";
21 const char kPrivetdServiceName[] = "org.chromium.privetd";
23 // Signals.
24 const char kSetupStatusChangedSignal[] = "SetupStatusChanged";
26 // Setup status values.
27 const char kSetupCompleted[] = "completed";
28 } // namespace privetd
30 namespace chromeos {
32 // PrivetDaemonClient is used to communicate with privetd for Wi-Fi
33 // bootstrapping and setup. The most common user for this code would be an
34 // embedded Chrome OS Core device.
35 class CHROMEOS_EXPORT PrivetDaemonClient : public DBusClient {
36 public:
37 ~PrivetDaemonClient() override;
39 // Called with setup status.
40 using GetSetupStatusCallback =
41 base::Callback<void(const std::string& status)>;
43 // Asynchronously gets the current setup status. The setup status strings can
44 // be found in third_party/cros_system_api/dbus/service_constants.h.
45 virtual void GetSetupStatus(const GetSetupStatusCallback& callback) = 0;
47 // Creates a new instance and returns ownership.
48 static PrivetDaemonClient* Create();
50 protected:
51 // Create() should be used instead.
52 PrivetDaemonClient();
54 private:
55 DISALLOW_COPY_AND_ASSIGN(PrivetDaemonClient);
58 } // namespace chromeos
60 #endif // CHROMEOS_DBUS_PRIVET_DAEMON_CLIENT_H_