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

Unified Diff: components/nacl/common/nacl.mojom

Issue 2525483002: Convert NaCl renderer-loader messages to mojo. (Closed)
Patch Set: rebase Created 4 years 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 side-by-side diff with in-line comments
Download patch
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 {};

Powered by Google App Engine
This is Rietveld 408576698