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/. */
7 * nsINetworkPredictorVerifier - used for testing the network predictor to
8 * ensure it does what we expect it to do.
11 #include
"nsISupports.idl"
15 [scriptable
, uuid(2e43bb32
-dabf
-4494-9f90
-2b3195b1c73d
)]
16 interface nsINetworkPredictorVerifier
: nsISupports
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
);
28 * Callback for when we do a predictive preconnect
30 * @param uri - The URI that was preconnected to
32 void onPredictPreconnect
(in nsIURI uri
);
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
);