CpowHolder.h 625 B

12345678910111213141516171819202122232425
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #ifndef mozilla_jsipc_CpowHolder_h__
  7. #define mozilla_jsipc_CpowHolder_h__
  8. #include "js/TypeDecls.h"
  9. namespace mozilla {
  10. namespace jsipc {
  11. class CpowHolder
  12. {
  13. public:
  14. virtual bool ToObject(JSContext* cx, JS::MutableHandle<JSObject*> objp) = 0;
  15. };
  16. } // namespace jsipc
  17. } // namespace mozilla
  18. #endif // mozilla_jsipc_CpowHolder_h__