Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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_DBUS_DBUS_CLIENTS_ASH_H_ | |
| 6 #define CHROMEOS_DBUS_DBUS_CLIENTS_ASH_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "chromeos/chromeos_export.h" | |
| 12 #include "chromeos/dbus/dbus_client_types.h" | |
| 13 | |
| 14 namespace dbus { | |
| 15 class Bus; | |
| 16 } | |
| 17 | |
| 18 namespace chromeos { | |
| 19 | |
| 20 class GsmSMSClient; | |
| 21 class ModemMessagingClient; | |
| 22 class SMSClient; | |
| 23 | |
| 24 // D-Bus clients used only in the ash window manager process. | |
| 25 // TODO(jamescook): Move this under //ash. http://crbug.com/647367 | |
| 26 class CHROMEOS_EXPORT DBusClientsAsh { | |
|
James Cook
2016/09/15 22:23:10
I intentionally do not provide DBusClientsAsh::Get
stevenjb
2016/09/16 15:17:59
Agreed.
| |
| 27 public: | |
| 28 // Creates real implementations for |real_clients| and fakes for all others. | |
| 29 // Fakes are used when running on Linux desktop and in tests. | |
| 30 explicit DBusClientsAsh(DBusClientTypeMask real_clients); | |
| 31 ~DBusClientsAsh(); | |
| 32 | |
| 33 void Initialize(dbus::Bus* system_bus); | |
| 34 | |
| 35 private: | |
| 36 friend class DBusThreadManager; | |
| 37 | |
| 38 std::unique_ptr<GsmSMSClient> gsm_sms_client_; | |
| 39 std::unique_ptr<ModemMessagingClient> modem_messaging_client_; | |
| 40 std::unique_ptr<SMSClient> sms_client_; | |
| 41 | |
| 42 DISALLOW_COPY_AND_ASSIGN(DBusClientsAsh); | |
| 43 }; | |
| 44 | |
| 45 } // namespace chromeos | |
| 46 | |
| 47 #endif // CHROMEOS_DBUS_DBUS_CLIENTS_ASH_H_ | |
| OLD | NEW |