Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: chromeos/dbus/dbus_clients_browser.h

Issue 2343993003: chromeos: Refactor D-Bus client creation for ash and browser processes (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/dbus_client_bundle_unittest.cc ('k') | chromeos/dbus/dbus_clients_browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_client_bundle_unittest.cc ('k') | chromeos/dbus/dbus_clients_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698