mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
interface nsIURI;
|
|
interface nsIInterfaceRequestor;
|
|
interface nsIEventTarget;
|
|
|
|
[scriptable, uuid(b3c53863-1313-480a-90a2-5b0da651ee5e)]
|
|
interface nsISpeculativeConnect : nsISupports
|
|
{
|
|
/**
|
|
* Called as a hint to indicate a new transaction for the URI is likely coming
|
|
* soon. The implementer may use this information to start a TCP
|
|
* and/or SSL level handshake for that resource immediately so that it is
|
|
* ready and/or progressed when the transaction is actually submitted.
|
|
*
|
|
* No obligation is taken on by the implementer, nor is the submitter obligated
|
|
* to actually open the new channel.
|
|
*
|
|
* @param aURI the URI of the hinted transaction
|
|
* @param aCallbacks any security callbacks for use with SSL for interfaces
|
|
* such as nsIBadCertListener. May be null.
|
|
* @param aTarget the thread on which the release of the callbacks will
|
|
* occur. May be null for "any thread".
|
|
*
|
|
*/
|
|
void speculativeConnect(in nsIURI aURI,
|
|
in nsIInterfaceRequestor aCallbacks,
|
|
in nsIEventTarget aTarget);
|
|
|
|
};
|
|
|