2001-09-20 04:02:59 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
1999-09-04 23:25:15 +04:00
|
|
|
*
|
2012-05-21 15:12:37 +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/. */
|
1999-09-04 23:25:15 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
[ptr] native JSRuntime(JSRuntime);
|
2013-07-09 18:28:15 +04:00
|
|
|
native xpcGCCallback(xpcGCCallback);
|
|
|
|
|
|
|
|
%{C++
|
|
|
|
|
|
|
|
typedef void
|
|
|
|
(* xpcGCCallback)(JSGCStatus status);
|
|
|
|
|
|
|
|
%}
|
2009-11-17 22:51:46 +03:00
|
|
|
|
2013-04-04 13:27:38 +04:00
|
|
|
interface nsIBackstagePass;
|
1999-09-04 23:25:15 +04:00
|
|
|
|
2013-07-09 18:28:15 +04:00
|
|
|
[uuid(996ef894-88cd-42c8-ac2d-28c60970daaf)]
|
1999-09-04 23:25:15 +04:00
|
|
|
interface nsIJSRuntimeService : nsISupports
|
|
|
|
{
|
1999-09-07 23:44:13 +04:00
|
|
|
readonly attribute JSRuntime runtime;
|
2009-11-17 22:51:46 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Register additional GC callback which will run after the
|
|
|
|
* standard XPConnect callback.
|
|
|
|
*/
|
2013-07-09 18:28:15 +04:00
|
|
|
[noscript, notxpcom] void registerGCCallback(in xpcGCCallback func);
|
|
|
|
[noscript, notxpcom] void unregisterGCCallback(in xpcGCCallback func);
|
1999-09-04 23:25:15 +04:00
|
|
|
};
|