Source code

Revision control

Other Tools

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/. */
5
6
/**
7
* nsINetworkPredictorVerifier - used for testing the network predictor to
8
* ensure it does what we expect it to do.
9
*/
10
11
#include "nsISupports.idl"
12
13
interface nsIURI;
14
15
[scriptable, uuid(2e43bb32-dabf-4494-9f90-2b3195b1c73d)]
16
interface nsINetworkPredictorVerifier : nsISupports
17
{
18
/**
19
* Callback for when we do a predictive prefetch
20
*
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
24
*/
25
void onPredictPrefetch(in nsIURI uri, in uint32_t status);
26
27
/**
28
* Callback for when we do a predictive preconnect
29
*
30
* @param uri - The URI that was preconnected to
31
*/
32
void onPredictPreconnect(in nsIURI uri);
33
34
/**
35
* Callback for when we do a predictive DNS lookup
36
*
37
* @param uri - The URI that was looked up
38
*/
39
void onPredictDNS(in nsIURI uri);
40
};