Bug 1845134 - Part 4: Update existing ui-icons to use the latest source from acorn...
[gecko.git] / netwerk / base / nsINetworkPredictorVerifier.idl
blobb00aecc076760bc5a26e414ed47e283ffd602708
1 /* vim: set ts=2 sts=2 et sw=2: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /**
7 * nsINetworkPredictorVerifier - used for testing the network predictor to
8 * ensure it does what we expect it to do.
9 */
11 #include "nsISupports.idl"
13 interface nsIURI;
15 [scriptable, uuid(2e43bb32-dabf-4494-9f90-2b3195b1c73d)]
16 interface nsINetworkPredictorVerifier : nsISupports
18 /**
19 * Callback for when we do a predictive prefetch
21 * @param uri - The URI that was prefetched
22 * @param status - The request status code returned by the
23 * prefetch attempt e.g. 200 (OK):w
25 void onPredictPrefetch(in nsIURI uri, in uint32_t status);
27 /**
28 * Callback for when we do a predictive preconnect
30 * @param uri - The URI that was preconnected to
32 void onPredictPreconnect(in nsIURI uri);
34 /**
35 * Callback for when we do a predictive DNS lookup
37 * @param uri - The URI that was looked up
39 void onPredictDNS(in nsIURI uri);