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

Side by Side Diff: mojo/shell/application_manager.h

Issue 1716793003: Enforce Capability Filter provided in manifest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@9deps
Patch Set: . Created 4 years, 10 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 | « mojo/services/tracing/manifest.json ('k') | mojo/shell/application_manager.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « mojo/services/tracing/manifest.json ('k') | mojo/shell/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698