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

Unified Diff: ash/common/mojo_interface_factory.h

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: rebase again Created 4 years, 2 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/aura/wm_shell_aura.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/mojo_interface_factory.h
diff --git a/ash/common/mojo_interface_factory.h b/ash/common/mojo_interface_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..c6ffed81945af2766be125e1308d5641cbda0adf
--- /dev/null
+++ b/ash/common/mojo_interface_factory.h
@@ -0,0 +1,35 @@
+// 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_MOJO_INTERFACE_FACTORY_H_
+#define ASH_COMMON_MOJO_INTERFACE_FACTORY_H_
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+}
+
+namespace shell {
+class InterfaceRegistry;
+}
+
+namespace ash {
+
+namespace mojo_interface_factory {
+
+// Registers all mojo services provided by ash. May be called on IO thread
+// (when running ash in-process in chrome) or on the main thread (when running
+// in mash).
+ASH_EXPORT void RegisterInterfaces(
+ shell::InterfaceRegistry* registry,
+ scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner);
+
+} // namespace mojo_interface_factory
+
+} // namespace ash
+
+#endif // ASH_COMMON_MOJO_INTERFACE_FACTORY_H_
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698