OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SHELL_SHELL_H_ | 5 #ifndef MOJO_SHELL_SHELL_H_ |
6 #define MOJO_SHELL_SHELL_H_ | 6 #define MOJO_SHELL_SHELL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Attempt to complete the connection requested by |params| by connecting to | 116 // Attempt to complete the connection requested by |params| by connecting to |
117 // an existing instance. If there is an existing instance, |params| is taken, | 117 // an existing instance. If there is an existing instance, |params| is taken, |
118 // and this function returns true. | 118 // and this function returns true. |
119 bool ConnectToExistingInstance(scoped_ptr<ConnectParams>* params); | 119 bool ConnectToExistingInstance(scoped_ptr<ConnectParams>* params); |
120 | 120 |
121 Instance* CreateInstance(const Identity& target_id, | 121 Instance* CreateInstance(const Identity& target_id, |
122 mojom::ShellClientRequest* request); | 122 mojom::ShellClientRequest* request); |
123 | 123 |
124 // Called from the instance implementing mojom::Shell. |user_id| must be | 124 // Called from the instance implementing mojom::Shell. |user_id| must be |
125 // resolved by the instance (i.e. must not be mojom::Connector::kUserInherit). | 125 // resolved by the instance (i.e. must not be mojom::kInheritUserID). |
126 void CreateInstanceForFactory( | 126 void CreateInstanceForFactory( |
127 mojom::ShellClientFactoryPtr factory, | 127 mojom::ShellClientFactoryPtr factory, |
128 const String& name, | 128 const std::string& name, |
129 uint32_t user_id, | 129 const std::string& user_id, |
130 mojom::CapabilityFilterPtr filter, | 130 mojom::CapabilityFilterPtr filter, |
131 mojom::PIDReceiverRequest pid_receiver); | 131 mojom::PIDReceiverRequest pid_receiver); |
132 // Called from the instance implementing mojom::Shell. | 132 // Called from the instance implementing mojom::Shell. |
133 void AddInstanceListener(mojom::InstanceListenerPtr listener); | 133 void AddInstanceListener(mojom::InstanceListenerPtr listener); |
134 | 134 |
135 void CreateShellClient(const Identity& source, | 135 void CreateShellClient(const Identity& source, |
136 const Identity& shell_client_factory, | 136 const Identity& shell_client_factory, |
137 const std::string& name, | 137 const std::string& name, |
138 mojom::ShellClientRequest request); | 138 mojom::ShellClientRequest request); |
139 // Returns a running ShellClientFactory for |shell_client_factory_identity|, | 139 // Returns a running ShellClientFactory for |shell_client_factory_identity|, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(Shell); | 195 DISALLOW_COPY_AND_ASSIGN(Shell); |
196 }; | 196 }; |
197 | 197 |
198 mojom::Connector::ConnectCallback EmptyConnectCallback(); | 198 mojom::Connector::ConnectCallback EmptyConnectCallback(); |
199 | 199 |
200 } // namespace shell | 200 } // namespace shell |
201 } // namespace mojo | 201 } // namespace mojo |
202 | 202 |
203 #endif // MOJO_SHELL_SHELL_H_ | 203 #endif // MOJO_SHELL_SHELL_H_ |
OLD | NEW |