OLD | NEW |
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 SERVICES_SERVICE_MANAGER_BACKGROUND_BACKGROUND_SHELL_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_BACKGROUND_BACKGROUND_SHELL_H_ |
6 #define SERVICES_SERVICE_MANAGER_BACKGROUND_BACKGROUND_SHELL_H_ | 6 #define SERVICES_SERVICE_MANAGER_BACKGROUND_BACKGROUND_SHELL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
13 #include "services/catalog/store.h" | 13 #include "services/catalog/store.h" |
14 #include "services/service_manager/public/interfaces/service.mojom.h" | 14 #include "services/service_manager/public/interfaces/service.mojom.h" |
15 | 15 |
16 namespace catalog { | 16 namespace catalog { |
17 class Store; | 17 class Store; |
18 } | 18 } |
19 | 19 |
20 namespace shell { | 20 namespace service_manager { |
21 | 21 |
22 class NativeRunnerDelegate; | 22 class NativeRunnerDelegate; |
23 class ServiceManager; | 23 class ServiceManager; |
24 | 24 |
25 // BackgroundShell starts up the mojo shell on a background thread, and | 25 // BackgroundShell starts up the mojo shell on a background thread, and |
26 // destroys the thread in the destructor. Once created use CreateApplication() | 26 // destroys the thread in the destructor. Once created use CreateApplication() |
27 // to obtain an InterfaceRequest for the Application. The InterfaceRequest can | 27 // to obtain an InterfaceRequest for the Application. The InterfaceRequest can |
28 // then be bound to an ApplicationImpl. | 28 // then be bound to an ApplicationImpl. |
29 class BackgroundShell { | 29 class BackgroundShell { |
30 public: | 30 public: |
(...skipping 26 matching lines...) Expand all Loading... |
57 const ServiceManagerThreadCallback& callback); | 57 const ServiceManagerThreadCallback& callback); |
58 | 58 |
59 private: | 59 private: |
60 class MojoThread; | 60 class MojoThread; |
61 | 61 |
62 std::unique_ptr<MojoThread> thread_; | 62 std::unique_ptr<MojoThread> thread_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(BackgroundShell); | 64 DISALLOW_COPY_AND_ASSIGN(BackgroundShell); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace shell | 67 } // namespace service_manager |
68 | 68 |
69 #endif // SERVICES_SERVICE_MANAGER_BACKGROUND_BACKGROUND_SHELL_H_ | 69 #endif // SERVICES_SERVICE_MANAGER_BACKGROUND_BACKGROUND_SHELL_H_ |
OLD | NEW |