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

Unified Diff: content/public/browser/service_manager_context.h

Issue 2163883005: WIP: Obtain Bootstrap from utility process Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/common/child_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/service_manager_context.h
diff --git a/content/public/browser/service_manager_context.h b/content/public/browser/service_manager_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..59e886e84ba10faa1c3400840794c928c174b666
--- /dev/null
+++ b/content/public/browser/service_manager_context.h
@@ -0,0 +1,33 @@
+// 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 CONTENT_PUBLIC_BROWSER_SERVICE_MANAGER_CONTEXT_H_
+#define CONTENT_PUBLIC_BROWSER_SERVICE_MANAGER_CONTEXT_H_
+
+#include <memory>
+
+#include "content/common/content_export.h"
+
+namespace shell {
+class Connector;
+}
+
+namespace content {
+
+// Sets up the Service Manager for the browser process. If the browser process
+// is launched from an external Service Manager, this configures that
+// connection. If it was not, this creates a Service Manager instance.
+class CONTENT_EXPORT ServiceManagerContext {
+ public:
+ virtual ~ServiceManagerContext() {}
+
+ // Create an instance of the context, binding to the external Service Manager
+ // that launched this process or creating one. Must be called on the main
+ // thread.
+ static std::unique_ptr<ServiceManagerContext> Create();
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SERVICE_MANAGER_CONTEXT_H_
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/common/child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698