| OLD | NEW |
| 1 # Service Manager User Guide | 1 # Service Manager User Guide |
| 2 | 2 |
| 3 ## What is the Service Manager? | 3 ## What is the Service Manager? |
| 4 | 4 |
| 5 The Service Manager is a tool that brokers connections and capabilities between | 5 The Service Manager is a tool that brokers connections and capabilities between |
| 6 and manages instances of components, referred to henceforth as services. | 6 and manages instances of components, referred to henceforth as services. |
| 7 | 7 |
| 8 The Service Manager performs the following functions: | 8 The Service Manager performs the following functions: |
| 9 | 9 |
| 10 * Brokering connections between services, including communicating policies such | 10 * Brokering connections between services, including communicating policies such |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 **BUILD.gn:** | 125 **BUILD.gn:** |
| 126 | 126 |
| 127 import("//services/service_manager/public/cpp/service.gni") | 127 import("//services/service_manager/public/cpp/service.gni") |
| 128 import("//services/service_manager/public/service_manifest.gni") | 128 import("//services/service_manager/public/service_manifest.gni") |
| 129 | 129 |
| 130 service("my_service") { | 130 service("my_service") { |
| 131 sources = [ "my_service.cc" ] | 131 sources = [ "my_service.cc" ] |
| 132 deps = [ "//base", "//services/service_manager/public/cpp" ] | 132 deps = [ "//base", "//services/service_manager/public/cpp" ] |
| 133 data_deps = [ ":manifest" ] | |
| 134 } | 133 } |
| 135 | 134 |
| 136 service_manifest("manifest") { | 135 service_manifest("manifest") { |
| 137 name = "my_service" | 136 name = "my_service" |
| 138 source = "manifest.json" | 137 source = "manifest.json" |
| 139 } | 138 } |
| 140 | 139 |
| 141 What does all this do? Building the app target produces two files in the output | 140 What does all this do? Building the app target produces two files in the output |
| 142 directory: Packages/my_service/my_service.library and | 141 directory: Packages/my_service/my_service.library and |
| 143 Packages/my_service/manifest.json. app.library is a DSO loaded by the Service | 142 Packages/my_service/manifest.json. app.library is a DSO loaded by the Service |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 Under the Hood | 803 Under the Hood |
| 805 Four major components: Service Manager API (Mojom), Service Manager, Catalog, | 804 Four major components: Service Manager API (Mojom), Service Manager, Catalog, |
| 806 Service Manager Client Lib. | 805 Service Manager Client Lib. |
| 807 The connect flow, catalog, etc. | 806 The connect flow, catalog, etc. |
| 808 Capability brokering in the Service Manager | 807 Capability brokering in the Service Manager |
| 809 Userids | 808 Userids |
| 810 | 809 |
| 811 Finer points: | 810 Finer points: |
| 812 | 811 |
| 813 Service Names: mojo, exe | 812 Service Names: mojo, exe |
| OLD | NEW |