uriloader/base/nsCURILoader.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uriloader/base/nsCURILoader.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +/* -*- Mode: IDL; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     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 +#include "nsIURILoader.idl"
    1.11 +
    1.12 +/*
    1.13 +nsCURILoader implements:
    1.14 +-------------------------
    1.15 +nsIURILoader
    1.16 +*/
    1.17 +
    1.18 +%{ C++
    1.19 +//	{9F6D5D40-90E7-11d3-AF93-00A024FFC08C} - 
    1.20 +#define NS_URI_LOADER_CID \
    1.21 +{ 0x9f6d5d40, 0x90e7, 0x11d3, { 0xaf, 0x80, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c } }
    1.22 +#define NS_URI_LOADER_CONTRACTID \
    1.23 +"@mozilla.org/uriloader;1"
    1.24 +
    1.25 +/* 057b04d0-0ccf-11d2-beba-00805f8a66dc */
    1.26 +#define NS_DOCUMENTLOADER_SERVICE_CID   \
    1.27 + { 0x057b04d0, 0x0ccf, 0x11d2,{0xbe, 0xba, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0xdc}}
    1.28 +
    1.29 +#define NS_DOCUMENTLOADER_SERVICE_CONTRACTID \
    1.30 +"@mozilla.org/docloaderservice;1"
    1.31 +
    1.32 +#define NS_CONTENT_HANDLER_CONTRACTID               "@mozilla.org/uriloader/content-handler;1"
    1.33 +#define NS_CONTENT_HANDLER_CONTRACTID_PREFIX	     NS_CONTENT_HANDLER_CONTRACTID "?type="
    1.34 +
    1.35 +/**
    1.36 + * A category where content listeners can register. The name of the entry must
    1.37 + * be the content that this listener wants to handle, the value must be a
    1.38 + * contract ID for the listener. It will be created using createInstance (not
    1.39 + * getService).
    1.40 + *
    1.41 + * Listeners added this way are tried after the initial target of the load and
    1.42 + * after explicitly registered listeners (nsIURILoader::registerContentListener).
    1.43 + *
    1.44 + * These listeners must implement at least nsIURIContentListener (and
    1.45 + * nsISupports).
    1.46 + *
    1.47 + * @see nsICategoryManager
    1.48 + * @see nsIURIContentListener
    1.49 + */
    1.50 +#define NS_CONTENT_LISTENER_CATEGORYMANAGER_ENTRY   "external-uricontentlisteners"
    1.51 +
    1.52 +%}

mercurial