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