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_BROWSER_H_ |
| 6 #define CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_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 ArcObbMounterClient; |
| 21 class CrosDisksClient; |
| 22 class CryptohomeClient; |
| 23 class DebugDaemonClient; |
| 24 class EasyUnlockClient; |
| 25 class ImageBurnerClient; |
| 26 class LorgnetteManagerClient; |
| 27 |
| 28 // D-Bus clients used only in the browser process. |
| 29 // TODO(jamescook): Move this under //chrome/browser. http://crbug.com/647367 |
| 30 class CHROMEOS_EXPORT DBusClientsBrowser { |
| 31 public: |
| 32 // Creates real implementations for |real_clients| and fakes for all others. |
| 33 // Fakes are used when running on Linux desktop and in tests. |
| 34 explicit DBusClientsBrowser(DBusClientTypeMask real_clients); |
| 35 ~DBusClientsBrowser(); |
| 36 |
| 37 void Initialize(dbus::Bus* system_bus); |
| 38 |
| 39 private: |
| 40 friend class DBusThreadManager; |
| 41 friend class DBusThreadManagerSetter; |
| 42 |
| 43 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; |
| 44 std::unique_ptr<CrosDisksClient> cros_disks_client_; |
| 45 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; |
| 46 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; |
| 47 std::unique_ptr<ImageBurnerClient> image_burner_client_; |
| 48 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; |
| 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(DBusClientsBrowser); |
| 51 }; |
| 52 |
| 53 } // namespace chromeos |
| 54 |
| 55 #endif // CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ |
OLD | NEW |