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

Unified Diff: ash/common/dbus_thread_manager_ash.h

Issue 2319783002: mash: Allow a subset of D-Bus clients to be created in DBusThreadManager (Closed)
Patch Set: WIP, add DBusThreadManagerAsh and DBusThreadManagerChrome 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/dbus_thread_manager_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/dbus_thread_manager_ash.h
diff --git a/ash/common/dbus_thread_manager_ash.h b/ash/common/dbus_thread_manager_ash.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee54ea9811de56dc9f70bd745ffbd6b1faa4fa82
--- /dev/null
+++ b/ash/common/dbus_thread_manager_ash.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_DBUS_THREAD_MANAGER_ASH_H_
+#define ASH_COMMON_DBUS_THREAD_MANAGER_ASH_H_
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+
+namespace chromeos {
+class PowerManagerClient;
+class SessionManagerClient;
+class SystemClockClient;
+}
+
+namespace ash {
+
+//JAMES DBusClientBundleAsh?
+class ASH_EXPORT DBusThreadManagerAsh {
+ public:
+ static DBusThreadManagerAsh* Get();
+
+ //JAMES external ownership? or traditional singleton like DBusThreadManager?
+ DBusThreadManagerAsh();
+ ~DBusThreadManagerAsh();
+
+ // D-Bus clients available to ash.
+ chromeos::PowerManagerClient* GetPowerManagerClient();
+ chromeos::SessionManagerClient* GetSessionManagerClient();
+ chromeos::SystemClockClient* GetSystemClockClient();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerAsh);
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_DBUS_THREAD_MANAGER_ASH_H_
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/dbus_thread_manager_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698