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

Side by Side Diff: mojo/application/public/interfaces/shell.mojom

Issue 1311353005: Adds a way to determine id of content handler that created app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 5 years, 3 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
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 module mojo; 5 module mojo;
6 6
7 import "mojo/application/public/interfaces/service_provider.mojom"; 7 import "mojo/application/public/interfaces/service_provider.mojom";
8 import "network/public/interfaces/url_loader.mojom"; 8 import "network/public/interfaces/url_loader.mojom";
9 9
10 // Specifies a whitelist of applications and services an application can connect 10 // Specifies a whitelist of applications and services an application can connect
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // If the |application_url| does not contain a domain, but is of the form 49 // If the |application_url| does not contain a domain, but is of the form
50 // "mojo:{service}", it is up to the Mojo shell to select an appropriate 50 // "mojo:{service}", it is up to the Mojo shell to select an appropriate
51 // application for the service. Currently, the shell does this based on the 51 // application for the service. Currently, the shell does this based on the
52 // value of its --origin flag. 52 // value of its --origin flag.
53 // 53 //
54 // |filter| is a whitelist of application URLs and services that the target 54 // |filter| is a whitelist of application URLs and services that the target
55 // application is permitted to connect to. See documentation for 55 // application is permitted to connect to. See documentation for
56 // CapabilityFilter above. Note also that this parameter may be NULL, which 56 // CapabilityFilter above. Note also that this parameter may be NULL, which
57 // has the same meaning as allowing the target application to connect to 57 // has the same meaning as allowing the target application to connect to
58 // any application and service. 58 // any application and service.
59 //
60 // If the connection to |application_url| involves a content handler, then
61 // |content_handler_id| is the id of the deepest content handler used to
62 // establish the connection to |application_url|. If no content handler is
63 // used |content_handler_id| is 0.
Ben Goodger (Google) 2015/08/31 17:41:07 since this looks a little arbitrary... add: TODO(
59 ConnectToApplication(URLRequest application_url, 64 ConnectToApplication(URLRequest application_url,
60 ServiceProvider&? services, 65 ServiceProvider&? services,
61 ServiceProvider? exposed_services, 66 ServiceProvider? exposed_services,
62 CapabilityFilter? filter); 67 CapabilityFilter? filter) => (uint32 content_handler_id);
63 68
64 // When there are no more instantiated services in an application, it should 69 // When there are no more instantiated services in an application, it should
65 // start its shutdown process by calling this method. Additionally, it should 70 // start its shutdown process by calling this method. Additionally, it should
66 // keep track of any new service requests that come in. The shell will then 71 // keep track of any new service requests that come in. The shell will then
67 // call Application::OnQuitRequested and start queueing new service requests. 72 // call Application::OnQuitRequested and start queueing new service requests.
68 // If the application didn't get any new service requests in the meantime, it 73 // If the application didn't get any new service requests in the meantime, it
69 // should call the callback with a true value. Otherwise it should call it 74 // should call the callback with a true value. Otherwise it should call it
70 // with false. 75 // with false.
71 QuitApplication(); 76 QuitApplication();
72 }; 77 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698