summaryrefslogtreecommitdiffstats
path: root/mailnews/base/public/nsIUrlListener.idl
blob: 93df30b6cdafc990fc8f174a6689a53edfa22e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsIURI;

%{C++
#include "nsIURL.h"
%}

/// General interface that signify URL processing.
[scriptable, uuid(47618220-D008-11d2-8069-006008128C4E)]
interface nsIUrlListener : nsISupports {
    /**
     * Called to signify the beginning of an URL processing.
     *
     * @param url URL being processed.
     */
    void OnStartRunningUrl(in nsIURI url);

    /**
     * Called to signify the end of an URL processing.
     * This call is always preceded by a call to OnStartRunningUrl.
     *
     * @param url        URL being processed.
     * @param aExitCode  A result code of URL processing.
     */
    void OnStopRunningUrl(in nsIURI url, in nsresult aExitCode);
};