netwerk/ipc/nsIRemoteOpenFileListener.idl

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:39fe45cdc7db
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim: set sw=4 ts=4 et tw=80 : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 #include "nsISupports.idl"
8
9 /**
10 * nsIRemoteOpenFileListener: passed to RemoteOpenFileChild::AsyncRemoteFileOpen.
11 *
12 * Interface for notifying when the file has been opened and is available in
13 * child.
14 */
15 [uuid(5c89208c-fe2b-4e04-9783-93bcf5c3b783)]
16 interface nsIRemoteOpenFileListener : nsISupports
17 {
18 /**
19 * Called when result of opening RemoteOpenFileChild:AsyncRemoteFileOpen()
20 * is available in child.
21 *
22 * @param aOpenStatus: nsresult from opening file in parent. If NS_OK,
23 * then a following call to RemoteOpenFileChild::OpenNSPRFileDesc that
24 * passes the same flags as were passed to
25 * RemoteOpenFileChild::AsyncRemoteFileOpen is guaranteed to succeed. If
26 * !NS_OK or if different flags were passed, the call will fail.
27 */
28 void onRemoteFileOpenComplete(in nsresult aOpenStatus);
29 };
30

mercurial