| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_DBUS_CLIENTS_BROWSER_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ |
| 6 #define CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ | 6 #define CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 | 12 |
| 13 namespace dbus { | 13 namespace dbus { |
| 14 class Bus; | 14 class Bus; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 class ArcObbMounterClient; | 19 class ArcObbMounterClient; |
| 20 class AuthPolicyClient; | 20 class AuthPolicyClient; |
| 21 class CrosDisksClient; | 21 class CrosDisksClient; |
| 22 class CryptohomeClient; | 22 class CryptohomeClient; |
| 23 class DebugDaemonClient; | 23 class DebugDaemonClient; |
| 24 class EasyUnlockClient; | 24 class EasyUnlockClient; |
| 25 class ImageBurnerClient; | 25 class ImageBurnerClient; |
| 26 class LorgnetteManagerClient; | 26 class LorgnetteManagerClient; |
| 27 class UpstartClient; |
| 27 | 28 |
| 28 // D-Bus clients used only in the browser process. | 29 // D-Bus clients used only in the browser process. |
| 29 // TODO(jamescook): Move this under //chrome/browser. http://crbug.com/647367 | 30 // TODO(jamescook): Move this under //chrome/browser. http://crbug.com/647367 |
| 30 class CHROMEOS_EXPORT DBusClientsBrowser { | 31 class CHROMEOS_EXPORT DBusClientsBrowser { |
| 31 public: | 32 public: |
| 32 // Creates real implementations if |use_real_clients| is true and fakes | 33 // Creates real implementations if |use_real_clients| is true and fakes |
| 33 // otherwise. Fakes are used when running on Linux desktop and in tests. | 34 // otherwise. Fakes are used when running on Linux desktop and in tests. |
| 34 explicit DBusClientsBrowser(bool use_real_clients); | 35 explicit DBusClientsBrowser(bool use_real_clients); |
| 35 ~DBusClientsBrowser(); | 36 ~DBusClientsBrowser(); |
| 36 | 37 |
| 37 void Initialize(dbus::Bus* system_bus); | 38 void Initialize(dbus::Bus* system_bus); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 friend class DBusThreadManager; | 41 friend class DBusThreadManager; |
| 41 friend class DBusThreadManagerSetter; | 42 friend class DBusThreadManagerSetter; |
| 42 | 43 |
| 43 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; | 44 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; |
| 44 std::unique_ptr<AuthPolicyClient> auth_policy_client_; | 45 std::unique_ptr<AuthPolicyClient> auth_policy_client_; |
| 45 std::unique_ptr<CrosDisksClient> cros_disks_client_; | 46 std::unique_ptr<CrosDisksClient> cros_disks_client_; |
| 46 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; | 47 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; |
| 47 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; | 48 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; |
| 48 std::unique_ptr<ImageBurnerClient> image_burner_client_; | 49 std::unique_ptr<ImageBurnerClient> image_burner_client_; |
| 49 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; | 50 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; |
| 51 std::unique_ptr<UpstartClient> upstart_client_; |
| 50 | 52 |
| 51 DISALLOW_COPY_AND_ASSIGN(DBusClientsBrowser); | 53 DISALLOW_COPY_AND_ASSIGN(DBusClientsBrowser); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace chromeos | 56 } // namespace chromeos |
| 55 | 57 |
| 56 #endif // CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ | 58 #endif // CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ |
| OLD | NEW |