Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 *
7 *
8 * This Original Code has been modified by IBM Corporation.
9 * Modifications made by IBM described herein are
10 * Copyright (c) International Business Machines
11 * Corporation, 2000
12 *
13 * Modifications to Mozilla code or documentation
14 * identified per MPL Section 3.3
15 *
16 * Date Modified by Description of modification
17 * 03/27/2000 IBM Corp. Added PR_CALLBACK for Optlink
18 * use in OS2
19 */
21 #include "nsIDOMScriptObjectFactory.h"
22 #include "nsIObserver.h"
23 #include "mozilla/Attributes.h"
25 class nsDOMScriptObjectFactory MOZ_FINAL : public nsIDOMScriptObjectFactory,
26 public nsIObserver
27 {
28 public:
29 nsDOMScriptObjectFactory();
31 NS_DECL_ISUPPORTS
33 // nsIObserver
34 NS_DECL_NSIOBSERVER
36 // nsIDOMScriptObjectFactory
37 NS_IMETHOD_(nsISupports *) GetClassInfoInstance(nsDOMClassInfoID aID) MOZ_OVERRIDE;
38 NS_IMETHOD_(nsISupports *) GetExternalClassInfoInstance(const nsAString& aName) MOZ_OVERRIDE;
40 NS_IMETHOD RegisterDOMClassInfo(const char *aName,
41 nsDOMClassInfoExternalConstructorFnc aConstructorFptr,
42 const nsIID *aProtoChainInterface,
43 const nsIID **aInterfaces,
44 uint32_t aScriptableFlags,
45 bool aHasClassInterface,
46 const nsCID *aConstructorCID) MOZ_OVERRIDE;
47 };