netwerk/base/public/nsIStreamingProtocolService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/public/nsIStreamingProtocolService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* vim: set sw=4 ts=4 et tw=80 : */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +interface nsIStreamingProtocolController;
    1.11 +interface nsIChannel;
    1.12 +
    1.13 +#include "nsISupports.idl"
    1.14 +
    1.15 +%{C++
    1.16 +#define NS_MEDIASTREAMCONTROLLERSERVICE_CID                                   \
    1.17 +  { 0x94838530, 0x8627, 0x11e2,                                               \
    1.18 +    {                                                                         \
    1.19 +      0x9e, 0x96, 0x08, 0x00,                                                 \
    1.20 +      0x20, 0x0c, 0x9a, 0x66                                                  \
    1.21 +    }                                                                         \
    1.22 +  }
    1.23 +#define MEDIASTREAMCONTROLLERSERVICE_CONTRACTID                               \
    1.24 +  "@mozilla.org/mediastream/mediastreamcontrollerservice;1"
    1.25 +%}
    1.26 +
    1.27 +/**
    1.28 + * Media stream controller Service API.
    1.29 + */
    1.30 +[uuid(94838530-8627-11e2-9e96-0800200c9a66)]
    1.31 +interface nsIStreamingProtocolControllerService : nsISupports
    1.32 +{
    1.33 +    /*
    1.34 +     * Create a new media stream controller from the given channel.
    1.35 +     * @param channel nsIChannel for the given URI.
    1.36 +     */
    1.37 +    nsIStreamingProtocolController create(in nsIChannel channel);
    1.38 +};

mercurial