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