main_process_directive_service.js 799 B

12345678910111213141516171819202122
  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/. */
  4. Components.utils.import("resource:///modules/XPCOMUtils.jsm");
  5. function TestProcessDirective() {}
  6. TestProcessDirective.prototype = {
  7. /* Boilerplate */
  8. QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsISupportsString]),
  9. contractID: "@mozilla.org/xpcom/tests/MainProcessDirectiveTest;1",
  10. classID: Components.ID("{9b6f4160-45be-11e4-916c-0800200c9a66}"),
  11. type: Components.interfaces.nsISupportsString.TYPE_STRING,
  12. data: "main process",
  13. toString: function() {
  14. return this.data;
  15. }
  16. };
  17. this.NSGetFactory = XPCOMUtils.generateNSGetFactory([TestProcessDirective]);