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

Side by Side Diff: mojo/shell/tests/lifecycle/lifecycle_unittest.mojom

Issue 1810713002: Cascade shutdown of instances (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@55all_users
Patch Set: . Created 4 years, 9 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/shell/tests/lifecycle/lifecycle_unittest.cc ('k') | mojo/shell/tests/lifecycle/parent.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.shell.test.mojom; 5 module mojo.shell.test.mojom;
6 6
7 // An interface implemented by an application exposing different ways for the 7 // An interface implemented by an application exposing different ways for the
8 // application to "shut down" from the caller and shell's perspective. 8 // application to "shut down" from the caller and shell's perspective.
9 interface LifecycleControl { 9 interface LifecycleControl {
10 // Method for ping-pong acknowledgement. 10 // Method for ping-pong acknowledgement.
11 Ping() => (); 11 Ping() => ();
12 12
13 // Perform any normal cleanup and shut down normally. 13 // Perform any normal cleanup and shut down normally.
14 GracefulQuit(); 14 GracefulQuit();
15 15
16 // Crash immediately and leave the shell and clients to deal with the 16 // Crash immediately and leave the shell and clients to deal with the
17 // consequences. 17 // consequences.
18 Crash(); 18 Crash();
19 19
20 // Not actually a shutdown from the client's perspective, but the Shell is no 20 // Not actually a shutdown from the client's perspective, but the Shell is no
21 // longer tracking this application. 21 // longer tracking this application.
22 CloseShellConnection(); 22 CloseShellConnection();
23 }; 23 };
24
25 // Implemented by an app that connects to another app, thereby creating an
26 // instance for it in the shell.
27 interface Parent {
28 // Connects to another app and runs the callback when that app has acked a
29 // Ping.
30 ConnectToChild() => ();
31 Quit();
32 };
OLDNEW
« no previous file with comments | « mojo/shell/tests/lifecycle/lifecycle_unittest.cc ('k') | mojo/shell/tests/lifecycle/parent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698