1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * vim: set ts=4 sw=4 et tw=80:
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef mozilla_jsipc_JavaScriptParent__
9 #define mozilla_jsipc_JavaScriptParent__
11 #include "JavaScriptBase.h"
12 #include "mozilla/jsipc/PJavaScriptParent.h"
17 class JavaScriptParent
: public JavaScriptBase
<PJavaScriptParent
>
20 explicit JavaScriptParent(JSRuntime
* rt
);
21 virtual ~JavaScriptParent();
24 void trace(JSTracer
* trc
);
26 void drop(JSObject
* obj
);
28 mozilla::ipc::IProtocol
*
29 CloneProtocol(Channel
* aChannel
, ProtocolCloneContext
* aCtx
) MOZ_OVERRIDE
;
32 virtual bool isParent() { return true; }
33 virtual JSObject
* defaultScope() MOZ_OVERRIDE
;
39 #endif // mozilla_jsipc_JavaScriptWrapper_h__