1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
9 function SlowScriptDebug() { }
11 SlowScriptDebug.prototype = {
12 classID: Components.ID("{e740ddb4-18b4-4aac-8ae1-9b0f4320769d}"),
13 classDescription: "Slow script debug handler",
14 contractID: "@mozilla.org/dom/slow-script-debug;1",
15 QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsISlowScriptDebug]),
17 get activationHandler() { return this._activationHandler; },
18 set activationHandler(cb) { return this._activationHandler = cb; },
21 this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SlowScriptDebug]);