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

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

Issue 845593003: Pass ServiceProvider and ServiceProvider& params in Connect (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/public/interfaces/application/service_provider.mojom"; 7 import "mojo/public/interfaces/application/service_provider.mojom";
8 8
9 // Applications vend Services through the ServiceProvider interface. Services 9 // Applications vend Services through the ServiceProvider interface. Services
10 // implement Interfaces. 10 // implement Interfaces.
11 interface Application { 11 interface Application {
12 // Initialize is guaranteed to be called before any AcceptConnection calls. 12 // Initialize is guaranteed to be called before any AcceptConnection calls.
13 Initialize(array<string>? args); 13 Initialize(array<string>? args);
14 14
15 AcceptConnection(string? requestor_url, ServiceProvider? provider); 15 // Called in response to a call to mojo.Shell.ConnectToApplication().
16 AcceptConnection(string? requestor_url,
Aaron Boodman 2015/01/09 17:53:36 We should really remove the question mark. request
17 ServiceProvider&? services,
darin (slow to review) 2015/01/09 17:31:16 I'm a little confused by the use of & here. Usuall
Aaron Boodman 2015/01/09 17:53:35 These names are always confusing because they can
18 ServiceProvider? exported_services);
16 }; 19 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698