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

Unified Diff: services/service_manager/runner/host/child_process_base.h

Issue 2566663004: Revert of Build services as standalone executables (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: services/service_manager/runner/host/child_process_base.h
diff --git a/services/service_manager/runner/host/child_process_base.h b/services/service_manager/runner/host/child_process_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d85adffb50aead821a2a0c805a08cb2d642d7c6
--- /dev/null
+++ b/services/service_manager/runner/host/child_process_base.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_BASE_H_
+#define SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_BASE_H_
+
+#include "base/callback.h"
+#include "services/service_manager/public/interfaces/service.mojom.h"
+
+namespace service_manager {
+
+// Child processes call this to establish the connection to the service manager
+// and obtain
+// the ServiceRequest. Once the connection has been established |callback|
+// is run. ChildProcessMainWithCallback() returns once the the callback
+// completes.
+using RunCallback = base::Callback<void(mojom::ServiceRequest)>;
+void ChildProcessMainWithCallback(const RunCallback& callback);
+
+} // namespace service_manager
+
+#endif // SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_BASE_H_
« no previous file with comments | « services/service_manager/runner/host/child_process.cc ('k') | services/service_manager/runner/host/child_process_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698