1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsIWebProgressListener.idl"
8 * An extended version of nsIWebProgressListener.
10 [scriptable
, uuid(dde39de0
-e4e0
-11da
-8ad9
-0800200c9a66
)]
11 interface nsIWebProgressListener2
: nsIWebProgressListener
{
13 * Notification that the progress has changed for one of the requests
14 * associated with aWebProgress. Progress totals are reset to zero when all
15 * requests in aWebProgress complete (corresponding to onStateChange being
16 * called with aStateFlags including the STATE_STOP and STATE_IS_WINDOW
19 * This function is identical to nsIWebProgressListener::onProgressChange,
20 * except that this function supports 64-bit values.
23 * The nsIWebProgress instance that fired the notification.
25 * The nsIRequest that has new progress.
26 * @param aCurSelfProgress
27 * The current progress for aRequest.
28 * @param aMaxSelfProgress
29 * The maximum progress for aRequest.
30 * @param aCurTotalProgress
31 * The current progress for all requests associated with aWebProgress.
32 * @param aMaxTotalProgress
33 * The total progress for all requests associated with aWebProgress.
35 * NOTE: If any progress value is unknown, then its value is replaced with -1.
37 * @see nsIWebProgressListener2::onProgressChange64
39 void onProgressChange64
(in nsIWebProgress aWebProgress
,
40 in nsIRequest aRequest
,
41 in long long aCurSelfProgress
,
42 in long long aMaxSelfProgress
,
43 in long long aCurTotalProgress
,
44 in long long aMaxTotalProgress
);
47 * Notification that a refresh or redirect has been requested in aWebProgress
48 * For example, via a <meta http-equiv="refresh"> or an HTTP Refresh: header
51 * The nsIWebProgress instance that fired the notification.
53 * The new URI that aWebProgress has requested redirecting to.
55 * The delay (in milliseconds) before refresh.
57 * True if aWebProgress is requesting a refresh of the
59 * False if aWebProgress is requesting a redirection to
62 * @return True if the refresh may proceed.
63 * False if the refresh should be aborted.
65 boolean onRefreshAttempted
(in nsIWebProgress aWebProgress
,
66 in nsIURI aRefreshURI
,
67 in unsigned long aMillis
,