netwerk/ipc/nsIRemoteOpenFileListener.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/ipc/nsIRemoteOpenFileListener.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* vim: set sw=4 ts=4 et tw=80 : */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +/**
    1.13 + * nsIRemoteOpenFileListener: passed to RemoteOpenFileChild::AsyncRemoteFileOpen.
    1.14 + *
    1.15 + * Interface for notifying when the file has been opened and is available in
    1.16 + * child.
    1.17 + */
    1.18 +[uuid(5c89208c-fe2b-4e04-9783-93bcf5c3b783)]
    1.19 +interface nsIRemoteOpenFileListener : nsISupports
    1.20 +{
    1.21 +    /**
    1.22 +     * Called when result of opening RemoteOpenFileChild:AsyncRemoteFileOpen()
    1.23 +     * is available in child.
    1.24 +     *
    1.25 +     * @param aOpenStatus: nsresult from opening file in parent.  If NS_OK,
    1.26 +     * then a following call to RemoteOpenFileChild::OpenNSPRFileDesc that
    1.27 +     * passes the same flags as were passed to
    1.28 +     * RemoteOpenFileChild::AsyncRemoteFileOpen is guaranteed to succeed.  If
    1.29 +     * !NS_OK or if different flags were passed, the call will fail.
    1.30 +     */
    1.31 +    void onRemoteFileOpenComplete(in nsresult aOpenStatus);
    1.32 +};
    1.33 +

mercurial