Bug 1681763 [wpt PR 26839] - WPT test: referrer on navigation from opaque origin...
[gecko.git] / js / src / debugger / DebuggerMemory.h
blob29098a5adfe5fcdcf67870a245481cfcbac18e91
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sts=2 et sw=2 tw=80:
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/. */
7 #ifndef debugger_DebuggerMemory_h
8 #define debugger_DebuggerMemory_h
10 #include "jsapi.h"
12 #include "js/Class.h"
13 #include "js/Value.h"
14 #include "vm/JSContext.h"
15 #include "vm/JSObject.h"
17 namespace js {
19 class DebuggerMemory : public NativeObject {
20 friend class Debugger;
22 static DebuggerMemory* checkThis(JSContext* cx, CallArgs& args);
24 Debugger* getDebugger();
26 public:
27 static DebuggerMemory* create(JSContext* cx, Debugger* dbg);
29 enum { JSSLOT_DEBUGGER, JSSLOT_COUNT };
31 static bool construct(JSContext* cx, unsigned argc, Value* vp);
32 static const JSClass class_;
33 static const JSPropertySpec properties[];
34 static const JSFunctionSpec methods[];
36 struct CallData;
39 } /* namespace js */
41 #endif /* debugger_DebuggerMemory_h */