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

Side by Side Diff: content/public/common/mojo_shell_connection.h

Issue 2107143003: Revert of Make RenderProcessHost/RenderThread use MojoChildConnection/MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rph2
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/public/child/child_thread.h ('k') | content/public/test/mock_render_thread.h » ('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 2016 The Chromium Authors. All rights reserved. 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 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_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_
6 #define CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ 6 #define CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // connection may already have been closed, in which case |closure| will be 75 // connection may already have been closed, in which case |closure| will be
76 // run immediately before returning from this function. 76 // run immediately before returning from this function.
77 virtual void SetConnectionLostClosure(const base::Closure& closure) = 0; 77 virtual void SetConnectionLostClosure(const base::Closure& closure) = 0;
78 78
79 // Allows the caller to expose interfaces to the caller using the identity of 79 // Allows the caller to expose interfaces to the caller using the identity of
80 // this object's ShellClient. As distinct from AddEmbeddedService() and 80 // this object's ShellClient. As distinct from AddEmbeddedService() and
81 // AddShellClientRequestHandler() which specify unique identities for the 81 // AddShellClientRequestHandler() which specify unique identities for the
82 // registered services. 82 // registered services.
83 virtual void AddEmbeddedShellClient( 83 virtual void AddEmbeddedShellClient(
84 std::unique_ptr<shell::ShellClient> shell_client) = 0; 84 std::unique_ptr<shell::ShellClient> shell_client) = 0;
85 virtual void AddEmbeddedShellClient(shell::ShellClient* shell_client) = 0;
86 85
87 // Adds an embedded service to this connection's ShellClientFactory. 86 // Adds an embedded service to this connection's ShellClientFactory.
88 // |info| provides details on how to construct new instances of the 87 // |info| provides details on how to construct new instances of the
89 // service when an incoming connection is made to |name|. 88 // service when an incoming connection is made to |name|.
90 virtual void AddEmbeddedService(const std::string& name, 89 virtual void AddEmbeddedService(const std::string& name,
91 const MojoApplicationInfo& info) = 0; 90 const MojoApplicationInfo& info) = 0;
92 91
93 // Adds a generic ShellClientRequestHandler for a given service name. This 92 // Adds a generic ShellClientRequestHandler for a given service name. This
94 // will be used to satisfy any incoming calls to CreateShellClient() which 93 // will be used to satisfy any incoming calls to CreateShellClient() which
95 // reference the given name. 94 // reference the given name.
96 // 95 //
97 // For in-process services, it is preferable to use |AddEmbeddedService()| as 96 // For in-process services, it is preferable to use |AddEmbeddedService()| as
98 // defined above. 97 // defined above.
99 virtual void AddShellClientRequestHandler( 98 virtual void AddShellClientRequestHandler(
100 const std::string& name, 99 const std::string& name,
101 const ShellClientRequestHandler& handler) = 0; 100 const ShellClientRequestHandler& handler) = 0;
102 }; 101 };
103 102
104 } // namespace content 103 } // namespace content
105 104
106 #endif // CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_ 105 #endif // CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/public/child/child_thread.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698