summaryrefslogtreecommitdiff
path: root/binary/src/dactylUtils.h
blob: 74545366fad2a8116f1d166ffb2fd946e13fcff8 (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
36

#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;
};

/* vim:se sts=4 sw=4 et cin ft=cpp: */