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

Side by Side Diff: content/browser/mojo/mojo_shell_context.h

Issue 2231133002: Revert of Eliminate kMojoChannelToken usage for render processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_
6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ 6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_
7 7
8 #include <map>
9 #include <memory>
10
11 #include "base/callback_forward.h"
12 #include "base/compiler_specific.h"
8 #include "base/macros.h" 13 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "services/shell/service_manager.h"
11 16
12 namespace shell { 17 namespace catalog {
13 class Connector; 18 class Catalog;
14 } 19 }
15 20
16 namespace content { 21 namespace content {
17 22
18 // MojoShellContext manages the browser's connection to the ServiceManager, 23 // MojoShellContext hosts the browser's ApplicationManager, coordinating
19 // hosting a new in-process ServiceManager if the browser was not launched from 24 // app registration and interconnection.
20 // an external one.
21 class CONTENT_EXPORT MojoShellContext { 25 class CONTENT_EXPORT MojoShellContext {
22 public: 26 public:
23 MojoShellContext(); 27 MojoShellContext();
24 ~MojoShellContext(); 28 ~MojoShellContext();
25 29
26 // Returns a shell::Connector that can be used on the IO thread. 30 // Returns a shell::Connector that can be used on the IO thread.
27 static shell::Connector* GetConnectorForIOThread(); 31 static shell::Connector* GetConnectorForIOThread();
28 32
29 private: 33 private:
30 class InProcessServiceManagerContext; 34 class BuiltinManifestProvider;
31 35
32 scoped_refptr<InProcessServiceManagerContext> in_process_context_; 36 std::unique_ptr<BuiltinManifestProvider> manifest_provider_;
37 std::unique_ptr<catalog::Catalog> catalog_;
38 std::unique_ptr<shell::ServiceManager> service_manager_;
33 39
34 DISALLOW_COPY_AND_ASSIGN(MojoShellContext); 40 DISALLOW_COPY_AND_ASSIGN(MojoShellContext);
35 }; 41 };
36 42
37 } // namespace content 43 } // namespace content
38 44
39 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_ 45 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CONTEXT_H_
OLDNEW
« 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