Index: components/nacl/common/nacl.mojom |
diff --git a/components/nacl/common/nacl.mojom b/components/nacl/common/nacl.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f1670ab55d1aed6baa510d2a91c18c2e8702f7c9 |
--- /dev/null |
+++ b/components/nacl/common/nacl.mojom |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module nacl.mojom; |
+ |
+[Native] |
+enum NaClErrorCode; |
+ |
+interface NaClRendererHost { |
+ // This message must be synchronous to ensure that the exit status is sent |
+ // from NaCl to the renderer before the NaCl process exits very soon after. |
+ [Sync] |
+ ReportExitStatus(int32 exit_status) => (); |
+ |
+ // This message must be synchronous to ensure that the load status is sent |
+ // from NaCl to the renderer before the NaCl process exits very soon after. |
+ [Sync] |
+ ReportLoadStatus(NaClErrorCode load_status) => (); |
+ |
+ ProvideExitControl(NaClExitControl exit_control); |
+}; |
+ |
+// An empty interface whose closure indicates that the NaCl plugin should exit. |
Mark Seaborn
2016/12/19 19:00:36
Nit: "plugin" -> "loader process"
In the NaCl/Chr
Sam McNally
2016/12/19 23:12:12
Done.
|
+interface NaClExitControl {}; |