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 module mojo; | 5 module mojo; |
6 | 6 |
7 import "mojo/public/interfaces/application/service_provider.mojom"; | 7 import "mojo/application/public/interfaces/service_provider.mojom"; |
8 import "mojo/public/interfaces/application/shell.mojom"; | 8 import "mojo/application/public/interfaces/shell.mojom"; |
9 | 9 |
10 // This is the primary interface implemented by every Mojo application. It | 10 // This is the primary interface implemented by every Mojo application. It |
11 // allows the application to receive its startup arguments from the shell, and | 11 // allows the application to receive its startup arguments from the shell, and |
12 // to be notified of events that occur during its execution. | 12 // to be notified of events that occur during its execution. |
13 // | 13 // |
14 // TODO(aa): It would be good to reorder the parameters once we have interface | 14 // TODO(aa): It would be good to reorder the parameters once we have interface |
15 // versioning. | 15 // versioning. |
16 interface Application { | 16 interface Application { |
17 // Initializes the application with the specified arguments. This method is | 17 // Initializes the application with the specified arguments. This method is |
18 // guaranteed to be called before any other method is called, and will only be | 18 // guaranteed to be called before any other method is called, and will only be |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // all mappings, resolutions, and redirects. This will include any querystring | 50 // all mappings, resolutions, and redirects. This will include any querystring |
51 // that was part of the request. | 51 // that was part of the request. |
52 AcceptConnection(string requestor_url, | 52 AcceptConnection(string requestor_url, |
53 ServiceProvider&? services, | 53 ServiceProvider&? services, |
54 ServiceProvider? exposed_services, | 54 ServiceProvider? exposed_services, |
55 string resolved_url); | 55 string resolved_url); |
56 | 56 |
57 // Called to request the application shut itself down gracefully. | 57 // Called to request the application shut itself down gracefully. |
58 RequestQuit(); | 58 RequestQuit(); |
59 }; | 59 }; |
OLD | NEW |