| 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_APPLICATION_MANAGER_H_ | 5 #ifndef MOJO_SHELL_APPLICATION_MANAGER_H_ |
| 6 #define MOJO_SHELL_APPLICATION_MANAGER_H_ | 6 #define MOJO_SHELL_APPLICATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // Callback when remote PackageManager resolves mojo:foo to mojo:bar. | 145 // Callback when remote PackageManager resolves mojo:foo to mojo:bar. |
| 146 // |params| are the params passed to Connect(). | 146 // |params| are the params passed to Connect(). |
| 147 // |resolved_url| is the mojo: url identifying the physical package | 147 // |resolved_url| is the mojo: url identifying the physical package |
| 148 // application. | 148 // application. |
| 149 // |file_url| is the resolved file:// URL of the physical package. | 149 // |file_url| is the resolved file:// URL of the physical package. |
| 150 // |base_filter| is the CapabilityFilter the requested application should be | 150 // |base_filter| is the CapabilityFilter the requested application should be |
| 151 // run with, from its manifest. | 151 // run with, from its manifest. |
| 152 void OnGotResolvedURL(scoped_ptr<ConnectParams> params, | 152 void OnGotResolvedURL(scoped_ptr<ConnectParams> params, |
| 153 const String& resolved_url, | 153 const String& resolved_url, |
| 154 const String& qualifier, | 154 const String& resolved_qualifier, |
| 155 mojom::CapabilityFilterPtr base_filter, | 155 mojom::CapabilityFilterPtr base_filter, |
| 156 const String& file_url); | 156 const String& file_url); |
| 157 | 157 |
| 158 // Tries to load |target| with an ApplicationLoader. Returns true if one was | 158 // Tries to load |target| with an ApplicationLoader. Returns true if one was |
| 159 // registered and it was loaded, in which case |request| is taken. | 159 // registered and it was loaded, in which case |request| is taken. |
| 160 bool LoadWithLoader(const Identity& target, | 160 bool LoadWithLoader(const Identity& target, |
| 161 mojom::ShellClientRequest* request); | 161 mojom::ShellClientRequest* request); |
| 162 | 162 |
| 163 // Returns the appropriate loader for |url|, or the default loader if there is | 163 // Returns the appropriate loader for |url|, or the default loader if there is |
| 164 // no loader configured for the URL. | 164 // no loader configured for the URL. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 194 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 mojom::Shell::ConnectCallback EmptyConnectCallback(); | 197 mojom::Shell::ConnectCallback EmptyConnectCallback(); |
| 198 | 198 |
| 199 } // namespace shell | 199 } // namespace shell |
| 200 } // namespace mojo | 200 } // namespace mojo |
| 201 | 201 |
| 202 #endif // MOJO_SHELL_APPLICATION_MANAGER_H_ | 202 #endif // MOJO_SHELL_APPLICATION_MANAGER_H_ |
| OLD | NEW |