summaryrefslogtreecommitdiff
path: root/binary/src/dactylUtils.h
blob: d0146c577e5a94e5ac3c80a880574ec245e1f5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#pragma once

#include "config.h"
#include "dactylIUtils.h"

#include "nsISupports.h"
#include "nsIPrincipal.h"
#include "nsIXPConnect.h"

#include "jsapi.h"
#include "jsfriendapi.h"
#include "nsIJSRuntimeService.h"
#include "nsIJSContextStack.h"

#include "nsCOMPtr.h"

class dactylUtils : public dactylIUtils {
public:
	dactylUtils() NS_HIDDEN;
	~dactylUtils() NS_HIDDEN;

	NS_DECL_ISUPPORTS
	NS_DECL_DACTYLIUTILS

	NS_HIDDEN_(nsresult) Init();

private:

	nsCOMPtr<nsIJSRuntimeService> mRuntimeService;
	JSRuntime *mRuntime;

	nsCOMPtr<nsIPrincipal> mSystemPrincipal;
};