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

Side by Side Diff: content/public/browser/shell_context.h

Issue 2112543002: Convert UtilityProcessHost to bootstrap Mojo Channel using the Shell connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@p9x
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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 CONTENT_PUBLIC_BROWSER_SHELL_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_SHELL_CONTEXT_H_
7
8 #include <memory>
9
10 #include "content/common/content_export.h"
11
12 namespace shell {
13 class Connector;
14 }
15
16 namespace content {
17
18 // Sets up the Shell for the browser process. If the browser process is launched
19 // from an external Shell, this configures that connection. If it was not, this
20 // creates a Shell instance.
21 class CONTENT_EXPORT ShellContext {
22 public:
23 virtual ~ShellContext() {}
24
25 // Create an instance of the context, binding to the external shell that
26 // launched this process or creating one. Must be called on the main thread.
27 static std::unique_ptr<ShellContext> Create();
28
29 // Returns a shell::Connector that can only be used on the IO thread. Can only
30 // be called after Create() has been called on the main thread.
31 static shell::Connector* GetConnectorForIOThread();
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_BROWSER_SHELL_CONTEXT_H_
OLDNEW
« 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