michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* vim: set sw=4 ts=4 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * nsIRemoteOpenFileListener: passed to RemoteOpenFileChild::AsyncRemoteFileOpen. michael@0: * michael@0: * Interface for notifying when the file has been opened and is available in michael@0: * child. michael@0: */ michael@0: [uuid(5c89208c-fe2b-4e04-9783-93bcf5c3b783)] michael@0: interface nsIRemoteOpenFileListener : nsISupports michael@0: { michael@0: /** michael@0: * Called when result of opening RemoteOpenFileChild:AsyncRemoteFileOpen() michael@0: * is available in child. michael@0: * michael@0: * @param aOpenStatus: nsresult from opening file in parent. If NS_OK, michael@0: * then a following call to RemoteOpenFileChild::OpenNSPRFileDesc that michael@0: * passes the same flags as were passed to michael@0: * RemoteOpenFileChild::AsyncRemoteFileOpen is guaranteed to succeed. If michael@0: * !NS_OK or if different flags were passed, the call will fail. michael@0: */ michael@0: void onRemoteFileOpenComplete(in nsresult aOpenStatus); michael@0: }; michael@0: