| 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 DebugDaemonClient; | 22 class DebugDaemonClient; |
| 23 class EasyUnlockClient; | 23 class EasyUnlockClient; |
| 24 class ImageBurnerClient; | 24 class ImageBurnerClient; |
| 25 class ImageLoaderClient; | 25 class ImageLoaderClient; |
| 26 class LorgnetteManagerClient; | 26 class LorgnetteManagerClient; |
| 27 class MediaAnalyticsClient; |
| 27 class UpstartClient; | 28 class UpstartClient; |
| 28 | 29 |
| 29 // D-Bus clients used only in the browser process. | 30 // D-Bus clients used only in the browser process. |
| 30 // TODO(jamescook): Move this under //chrome/browser. http://crbug.com/647367 | 31 // TODO(jamescook): Move this under //chrome/browser. http://crbug.com/647367 |
| 31 class CHROMEOS_EXPORT DBusClientsBrowser { | 32 class CHROMEOS_EXPORT DBusClientsBrowser { |
| 32 public: | 33 public: |
| 33 // Creates real implementations if |use_real_clients| is true and fakes | 34 // Creates real implementations if |use_real_clients| is true and fakes |
| 34 // otherwise. Fakes are used when running on Linux desktop and in tests. | 35 // otherwise. Fakes are used when running on Linux desktop and in tests. |
| 35 explicit DBusClientsBrowser(bool use_real_clients); | 36 explicit DBusClientsBrowser(bool use_real_clients); |
| 36 ~DBusClientsBrowser(); | 37 ~DBusClientsBrowser(); |
| 37 | 38 |
| 38 void Initialize(dbus::Bus* system_bus); | 39 void Initialize(dbus::Bus* system_bus); |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 friend class DBusThreadManager; | 42 friend class DBusThreadManager; |
| 42 friend class DBusThreadManagerSetter; | 43 friend class DBusThreadManagerSetter; |
| 43 | 44 |
| 44 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; | 45 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; |
| 45 std::unique_ptr<AuthPolicyClient> auth_policy_client_; | 46 std::unique_ptr<AuthPolicyClient> auth_policy_client_; |
| 46 std::unique_ptr<CrosDisksClient> cros_disks_client_; | 47 std::unique_ptr<CrosDisksClient> cros_disks_client_; |
| 47 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; | 48 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; |
| 48 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; | 49 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; |
| 49 std::unique_ptr<ImageBurnerClient> image_burner_client_; | 50 std::unique_ptr<ImageBurnerClient> image_burner_client_; |
| 50 std::unique_ptr<ImageLoaderClient> image_loader_client_; | 51 std::unique_ptr<ImageLoaderClient> image_loader_client_; |
| 51 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; | 52 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; |
| 53 std::unique_ptr<MediaAnalyticsClient> media_analytics_client_; |
| 52 std::unique_ptr<UpstartClient> upstart_client_; | 54 std::unique_ptr<UpstartClient> upstart_client_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(DBusClientsBrowser); | 56 DISALLOW_COPY_AND_ASSIGN(DBusClientsBrowser); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace chromeos | 59 } // namespace chromeos |
| 58 | 60 |
| 59 #endif // CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ | 61 #endif // CHROMEOS_DBUS_DBUS_CLIENTS_BROWSER_H_ |
| OLD | NEW |