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

Side by Side Diff: chrome/browser/chromeos/chrome_interface_factory.h

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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
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 CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
7 7
8 #include "ash/sysui/public/interfaces/wallpaper.mojom.h" 8 #include "ash/sysui/public/interfaces/wallpaper.mojom.h"
9 #include "content/public/common/mojo_shell_connection.h" 9 #include "content/public/common/mojo_shell_connection.h"
10 #include "mash/public/interfaces/launchable.mojom.h" 10 #include "mash/public/interfaces/launchable.mojom.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/shell/public/cpp/interface_factory.h" 12 #include "services/shell/public/cpp/interface_factory.h"
13 #include "services/shell/public/cpp/shell_client.h" 13 #include "services/shell/public/cpp/service.h"
14 #include "ui/app_list/presenter/app_list_presenter.mojom.h" 14 #include "ui/app_list/presenter/app_list_presenter.mojom.h"
15 #include "ui/keyboard/keyboard.mojom.h" 15 #include "ui/keyboard/keyboard.mojom.h"
16 16
17 class AppListPresenterService; 17 class AppListPresenterService;
18 class ChromeLaunchable; 18 class ChromeLaunchable;
19 class ChromeWallpaperManager; 19 class ChromeWallpaperManager;
20 class KeyboardUIService; 20 class KeyboardUIService;
21 21
22 namespace chromeos { 22 namespace chromeos {
23 23
24 // InterfaceFactory for creating all services provided by chrome. 24 // InterfaceFactory for creating all services provided by chrome.
25 class ChromeInterfaceFactory 25 class ChromeInterfaceFactory
26 : public shell::ShellClient, 26 : public shell::Service,
27 public shell::InterfaceFactory<keyboard::mojom::Keyboard>, 27 public shell::InterfaceFactory<keyboard::mojom::Keyboard>,
28 public shell::InterfaceFactory<mash::mojom::Launchable>, 28 public shell::InterfaceFactory<mash::mojom::Launchable>,
29 public shell::InterfaceFactory<ash::sysui::mojom::WallpaperManager>, 29 public shell::InterfaceFactory<ash::sysui::mojom::WallpaperManager>,
30 public shell::InterfaceFactory<app_list::mojom::AppListPresenter> { 30 public shell::InterfaceFactory<app_list::mojom::AppListPresenter> {
31 public: 31 public:
32 ChromeInterfaceFactory(); 32 ChromeInterfaceFactory();
33 ~ChromeInterfaceFactory() override; 33 ~ChromeInterfaceFactory() override;
34 34
35 private: 35 private:
36 // shell::ShellClient: 36 // shell::Service:
37 bool AcceptConnection(shell::Connection* connection) override; 37 bool OnConnect(shell::Connection* connection) override;
38 38
39 // shell::InterfaceFactory<keyboard::Keyboard>: 39 // shell::InterfaceFactory<keyboard::Keyboard>:
40 void Create( 40 void Create(
41 shell::Connection* connection, 41 shell::Connection* connection,
42 mojo::InterfaceRequest<keyboard::mojom::Keyboard> request) override; 42 mojo::InterfaceRequest<keyboard::mojom::Keyboard> request) override;
43 43
44 // mojo::InterfaceFactory<mash::mojom::Launchable> 44 // mojo::InterfaceFactory<mash::mojom::Launchable>
45 void Create(shell::Connection* connection, 45 void Create(shell::Connection* connection,
46 mash::mojom::LaunchableRequest request) override; 46 mash::mojom::LaunchableRequest request) override;
47 47
(...skipping 13 matching lines...) Expand all
61 std::unique_ptr<AppListPresenterService> app_list_presenter_service_; 61 std::unique_ptr<AppListPresenterService> app_list_presenter_service_;
62 mojo::BindingSet<app_list::mojom::AppListPresenter> 62 mojo::BindingSet<app_list::mojom::AppListPresenter>
63 app_list_presenter_bindings_; 63 app_list_presenter_bindings_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory); 65 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory);
66 }; 66 };
67 67
68 } // namespace chromeos 68 } // namespace chromeos
69 69
70 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 70 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chromeos/chrome_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698