| OLD | NEW |
| (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 SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_BASE_H_ |
| 6 #define SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_BASE_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "services/service_manager/public/interfaces/service.mojom.h" |
| 10 |
| 11 namespace service_manager { |
| 12 |
| 13 // Child processes call this to establish the connection to the service manager |
| 14 // and obtain |
| 15 // the ServiceRequest. Once the connection has been established |callback| |
| 16 // is run. ChildProcessMainWithCallback() returns once the the callback |
| 17 // completes. |
| 18 using RunCallback = base::Callback<void(mojom::ServiceRequest)>; |
| 19 void ChildProcessMainWithCallback(const RunCallback& callback); |
| 20 |
| 21 } // namespace service_manager |
| 22 |
| 23 #endif // SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_BASE_H_ |
| OLD | NEW |