1// Copyright 2016 The Chromium Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5module nacl.mojom; 6 7[Native] 8enum NaClErrorCode; 9 10interface NaClRendererHost { 11 // This message must be synchronous to ensure that the exit status is sent 12 // from NaCl to the renderer before the NaCl process exits very soon after. 13 [Sync] 14 ReportExitStatus(int32 exit_status) => (); 15 16 // This message must be synchronous to ensure that the load status is sent 17 // from NaCl to the renderer before the NaCl process exits very soon after. 18 [Sync] 19 ReportLoadStatus(NaClErrorCode load_status) => (); 20 21 ProvideExitControl(pending_remote<NaClExitControl> exit_control); 22}; 23 24// When this interface is closed, it indicates that the NaCl loader process 25// should exit. 26interface NaClExitControl {}; 27