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

Side by Side Diff: ash/common/mojo_interface_factory.h

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: Restructure based on feedback 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 unified diff | Download patch
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 ASH_COMMON_MOJO_INTERFACE_FACTORY_H_
6 #define ASH_COMMON_MOJO_INTERFACE_FACTORY_H_
7
8 #include "ash/ash_export.h"
9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h"
11
12 namespace base {
13 class SingleThreadTaskRunner;
14 }
15
16 namespace shell {
17 class InterfaceRegistry;
18 }
19
20 namespace ash {
21
22 class ASH_EXPORT MojoInterfaceFactory {
James Cook 2016/09/30 21:18:26 I could also add namespace mojo_interface_factory
msw 2016/09/30 23:26:48 This seems fine to me.
23 public:
24 // Registers all mojo services provided by ash. May be called on IO thread
25 // (when running ash in-process in chrome) or on the main thread (when running
26 // in mash).
27 static void RegisterInterfaces(
28 shell::InterfaceRegistry* registry,
29 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner);
30
31 private:
32 DISALLOW_IMPLICIT_CONSTRUCTORS(MojoInterfaceFactory);
33 };
34
35 } // namespace ash
36
37 #endif // ASH_COMMON_MOJO_INTERFACE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698