Bumping manifests a=b2g-bump
[gecko.git] / js / ipc / JavaScriptParent.h
blob2192e48284c5cd85f8b2b495b90c1fb0c6644a69
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"
14 namespace mozilla {
15 namespace jsipc {
17 class JavaScriptParent : public JavaScriptBase<PJavaScriptParent>
19 public:
20 explicit JavaScriptParent(JSRuntime* rt);
21 virtual ~JavaScriptParent();
23 bool init();
24 void trace(JSTracer* trc);
26 void drop(JSObject* obj);
28 mozilla::ipc::IProtocol*
29 CloneProtocol(Channel* aChannel, ProtocolCloneContext* aCtx) MOZ_OVERRIDE;
31 protected:
32 virtual bool isParent() { return true; }
33 virtual JSObject* defaultScope() MOZ_OVERRIDE;
36 } // jsipc
37 } // mozilla
39 #endif // mozilla_jsipc_JavaScriptWrapper_h__