netwerk/base/public/nsINetworkSeerVerifier.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/public/nsINetworkSeerVerifier.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* vim: set ts=2 sts=2 et sw=2: */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/**
    1.10 + * nsINetworkSeerVerifier - used for testing the network seer to ensure it
    1.11 + *                          does what we expect it to do.
    1.12 + */
    1.13 +
    1.14 +#include "nsISupports.idl"
    1.15 +
    1.16 +interface nsIURI;
    1.17 +
    1.18 +[scriptable, uuid(ea273653-43a8-4632-8b30-4032e0918e8b)]
    1.19 +interface nsINetworkSeerVerifier : nsISupports
    1.20 +{
    1.21 +    /**
    1.22 +     * Callback for when we do a predictive preconnect
    1.23 +     *
    1.24 +     * @param uri - The URI that was preconnected to
    1.25 +     */
    1.26 +    void onPredictPreconnect(in nsIURI uri);
    1.27 +
    1.28 +    /**
    1.29 +     * Callback for when we do a predictive DNS lookup
    1.30 +     *
    1.31 +     * @param uri - The URI that was looked up
    1.32 +     */
    1.33 +    void onPredictDNS(in nsIURI uri);
    1.34 +};

mercurial