netwerk/base/public/nsIChildChannel.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/public/nsIChildChannel.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +interface nsIStreamListener;
    1.11 +
    1.12 +/**
    1.13 + * Implemented by content side of IPC protocols.
    1.14 + */
    1.15 +
    1.16 +[scriptable, uuid(c45b92ae-4f07-41dd-b0ef-aa044eeabb1e)]
    1.17 +interface nsIChildChannel : nsISupports
    1.18 +{
    1.19 +  /**
    1.20 +   * Create the chrome side of the IPC protocol and join an existing 'real'
    1.21 +   * channel on the parent process.  The id is provided by
    1.22 +   * nsIRedirectChannelRegistrar on the chrome process and pushed to the child
    1.23 +   * protocol as an argument to event starting a redirect.
    1.24 +   *
    1.25 +   * Primarilly used in HttpChannelChild::Redirect1Begin on a newly created
    1.26 +   * child channel, where the new channel is intended to be created on the
    1.27 +   * child process.
    1.28 +   */
    1.29 +  void connectParent(in uint32_t id);
    1.30 +
    1.31 +  /**
    1.32 +   * As AsyncOpen is called on the chrome process for redirect target channels,
    1.33 +   * we have to inform the child side of the protocol of that fact by a special
    1.34 +   * method.
    1.35 +   */
    1.36 +  void completeRedirectSetup(in nsIStreamListener aListener,
    1.37 +                             in nsISupports aContext);
    1.38 +};

mercurial