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

Unified Diff: content/browser/mojo/mojo_shell_context.h

Issue 2201183005: Eliminate kMojoChannelToken usage for render processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/browser/BUILD.gn ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_shell_context.h
diff --git a/content/browser/mojo/mojo_shell_context.h b/content/browser/mojo/mojo_shell_context.h
index 8602773e0402b741e09a29d09590b8f021fe8504..8885270116803a651ee29c97b1adc3e711ad8d18 100644
--- a/content/browser/mojo/mojo_shell_context.h
+++ b/content/browser/mojo/mojo_shell_context.h
@@ -5,23 +5,19 @@
#ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_
#define CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_
-#include <map>
-#include <memory>
-
-#include "base/callback_forward.h"
-#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
-#include "services/shell/service_manager.h"
-namespace catalog {
-class Catalog;
+namespace shell {
+class Connector;
}
namespace content {
-// MojoShellContext hosts the browser's ApplicationManager, coordinating
-// app registration and interconnection.
+// MojoShellContext manages the browser's connection to the ServiceManager,
+// hosting a new in-process ServiceManager if the browser was not launched from
+// an external one.
class CONTENT_EXPORT MojoShellContext {
public:
MojoShellContext();
@@ -31,11 +27,9 @@ class CONTENT_EXPORT MojoShellContext {
static shell::Connector* GetConnectorForIOThread();
private:
- class BuiltinManifestProvider;
+ class InProcessServiceManagerContext;
- std::unique_ptr<BuiltinManifestProvider> manifest_provider_;
- std::unique_ptr<catalog::Catalog> catalog_;
- std::unique_ptr<shell::ServiceManager> service_manager_;
+ scoped_refptr<InProcessServiceManagerContext> in_process_context_;
DISALLOW_COPY_AND_ASSIGN(MojoShellContext);
};
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698