2007-05-16 03:27:40 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-29 19:52:43 +04:00
|
|
|
/* 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/. */
|
2007-05-16 03:27:40 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2017-07-18 03:11:06 +03:00
|
|
|
[scriptable, builtinclass, uuid(4f94b21f-2920-4bd9-8251-5fb60fb054b2)]
|
2007-05-16 03:27:40 +04:00
|
|
|
interface xpcIJSModuleLoader : nsISupports
|
|
|
|
{
|
2017-09-13 22:19:53 +03:00
|
|
|
// These functions are for startup testing purposes. They are not expected
|
2017-06-01 00:00:43 +03:00
|
|
|
// to be used for production code.
|
|
|
|
void loadedModules([optional] out unsigned long length,
|
|
|
|
[retval, array, size_is(length)] out string aModules);
|
|
|
|
|
|
|
|
void loadedComponents([optional] out unsigned long length,
|
|
|
|
[retval, array, size_is(length)] out string aComponents);
|
2017-09-13 22:19:53 +03:00
|
|
|
|
|
|
|
// These 2 functions will only return useful values if the
|
|
|
|
// "browser.startup.record" preference was true at the time the JS file
|
|
|
|
// was loaded.
|
|
|
|
ACString getModuleImportStack(in AUTF8String aLocation);
|
|
|
|
ACString getComponentLoadStack(in AUTF8String aLocation);
|
2007-05-16 03:27:40 +04:00
|
|
|
};
|