| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // If there is not one running one is started for |source_identity|. | 135 // If there is not one running one is started for |source_identity|. |
| 136 mojom::ShellClientFactory* GetShellClientFactory( | 136 mojom::ShellClientFactory* GetShellClientFactory( |
| 137 const Identity& shell_client_factory_identity, | 137 const Identity& shell_client_factory_identity, |
| 138 const Identity& source_identity); | 138 const Identity& source_identity); |
| 139 void OnShellClientFactoryLost(const Identity& which); | 139 void OnShellClientFactoryLost(const Identity& which); |
| 140 | 140 |
| 141 // Callback when remote Catalog resolves mojo:foo to mojo:bar. | 141 // Callback when remote Catalog resolves mojo:foo to mojo:bar. |
| 142 // |params| are the params passed to Connect(). | 142 // |params| are the params passed to Connect(). |
| 143 // |client| if provided is a ShellClientPtr which should be used to manage the | 143 // |client| if provided is a ShellClientPtr which should be used to manage the |
| 144 // new application instance. This may be null. | 144 // new application instance. This may be null. |
| 145 // |resolved_name| is the mojo: name identifying the physical package | 145 // |result| contains the result of the resolve operation. |
| 146 // application. | |
| 147 // |file_url| is the resolved file:// URL of the physical package. | |
| 148 // |capabilities| is the CapabilitySpecPtr the requested application should be | |
| 149 // run with, from its manifest. | |
| 150 void OnGotResolvedName(mojom::ShellResolverPtr resolver, | 146 void OnGotResolvedName(mojom::ShellResolverPtr resolver, |
| 151 scoped_ptr<ConnectParams> params, | 147 scoped_ptr<ConnectParams> params, |
| 152 mojom::ShellClientPtr client, | 148 mojom::ShellClientPtr client, |
| 153 const String& resolved_name, | 149 mojom::ResolveResultPtr result); |
| 154 const String& resolved_instance, | |
| 155 mojom::CapabilitySpecPtr capabilities, | |
| 156 const String& file_url); | |
| 157 | 150 |
| 158 // Tries to load |target| with an Loader. Returns true if one was registered | 151 // Tries to load |target| with an Loader. Returns true if one was registered |
| 159 // and it was loaded, in which case |request| is taken. | 152 // and it was loaded, in which case |request| is taken. |
| 160 bool LoadWithLoader(const Identity& target, | 153 bool LoadWithLoader(const Identity& target, |
| 161 mojom::ShellClientRequest* request); | 154 mojom::ShellClientRequest* request); |
| 162 | 155 |
| 163 // Returns the appropriate loader for |name|, or the default loader if there | 156 // Returns the appropriate loader for |name|, or the default loader if there |
| 164 // is no loader configured for the name. | 157 // is no loader configured for the name. |
| 165 Loader* GetLoaderForName(const std::string& name); | 158 Loader* GetLoaderForName(const std::string& name); |
| 166 | 159 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 193 | 186 |
| 194 DISALLOW_COPY_AND_ASSIGN(Shell); | 187 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 195 }; | 188 }; |
| 196 | 189 |
| 197 mojom::Connector::ConnectCallback EmptyConnectCallback(); | 190 mojom::Connector::ConnectCallback EmptyConnectCallback(); |
| 198 | 191 |
| 199 } // namespace shell | 192 } // namespace shell |
| 200 } // namespace mojo | 193 } // namespace mojo |
| 201 | 194 |
| 202 #endif // MOJO_SHELL_SHELL_H_ | 195 #endif // MOJO_SHELL_SHELL_H_ |
| OLD | NEW |