Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 : * vim: set ts=8 sw=4 et tw=80:
3 : *
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/. */
7 :
8 : #ifndef mozilla_jsipc_CpowHolder_h__
9 : #define mozilla_jsipc_CpowHolder_h__
10 :
11 : #include "js/TypeDecls.h"
12 :
13 : namespace mozilla {
14 : namespace jsipc {
15 :
16 47 : class CpowHolder
17 : {
18 : public:
19 : virtual bool ToObject(JSContext* cx, JS::MutableHandle<JSObject*> objp) = 0;
20 : };
21 :
22 : } // namespace jsipc
23 : } // namespace mozilla
24 :
25 : #endif // mozilla_jsipc_CpowHolder_h__
|