mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1131003 - Move jsproxy.h to js/Proxy.h. r=efaust
--HG-- rename : js/src/jsproxy.h => js/public/Proxy.h
This commit is contained in:
parent
2365d8d92e
commit
fcb11bbe71
@ -6,7 +6,7 @@
|
||||
|
||||
#include "nsWrapperCacheInlines.h"
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "mozilla/dom/DOMJSProxyHandler.h"
|
||||
#include "mozilla/HoldDropJSObjects.h"
|
||||
#include "nsCycleCollectionTraversalCallback.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "mozilla/Likely.h"
|
||||
|
||||
#include "jsapi.h"
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#define DOM_PROXY_OBJECT_SLOT js::PROXY_PRIVATE_SLOT
|
||||
|
@ -9,8 +9,8 @@
|
||||
#include "mozilla/dom/ContentParent.h"
|
||||
#include "nsJSUtils.h"
|
||||
#include "jsfriendapi.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jswrapper.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "HeapAPI.h"
|
||||
#include "xpcprivate.h"
|
||||
#include "mozilla/Casting.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "mozilla/ipc/ProtocolUtils.h"
|
||||
#include "mozilla/jsipc/CrossProcessObjectWrappers.h"
|
||||
#include "js/Class.h"
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace jsipc {
|
||||
@ -28,7 +28,7 @@ class WrapperOwner : public virtual JavaScriptShared
|
||||
bool init();
|
||||
|
||||
// Standard internal methods.
|
||||
// (The traps should be in the same order like js/src/jsproxy.h)
|
||||
// (The traps should be in the same order like js/Proxy.h)
|
||||
bool getOwnPropertyDescriptor(JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
|
||||
JS::MutableHandle<JSPropertyDescriptor> desc);
|
||||
bool defineProperty(JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
|
||||
|
@ -4,8 +4,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef jsproxy_h
|
||||
#define jsproxy_h
|
||||
#ifndef js_Proxy_h
|
||||
#define js_Proxy_h
|
||||
|
||||
#include "mozilla/Maybe.h"
|
||||
|
||||
@ -679,4 +679,4 @@ inline void assertEnteredPolicy(JSContext *cx, JSObject *obj, jsid id,
|
||||
extern JS_FRIEND_API(JSObject *)
|
||||
js_InitProxyClass(JSContext *cx, JS::HandleObject obj);
|
||||
|
||||
#endif /* jsproxy_h */
|
||||
#endif /* js_Proxy_h */
|
@ -8,7 +8,6 @@
|
||||
|
||||
#include "mozilla/TemplateLib.h"
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "jstypes.h"
|
||||
|
||||
#include "builtin/TypedObject.h"
|
||||
@ -22,6 +21,7 @@
|
||||
# include "jit/PerfSpewer.h"
|
||||
#endif
|
||||
#include "jit/VMFunctions.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/Shape.h"
|
||||
|
||||
#include "jit/JitFrames-inl.h"
|
||||
|
@ -3,7 +3,8 @@
|
||||
*/
|
||||
|
||||
#include "jsfriendapi.h"
|
||||
#include "jsproxy.h"
|
||||
|
||||
#include "js/Proxy.h"
|
||||
|
||||
#include "jsapi-tests/tests.h"
|
||||
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include "jsobj.h"
|
||||
#include "json.h"
|
||||
#include "jsprf.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jsscript.h"
|
||||
#include "jsstr.h"
|
||||
#include "jstypes.h"
|
||||
@ -62,6 +61,7 @@
|
||||
#include "jit/JitCommon.h"
|
||||
#include "js/CharacterEncoding.h"
|
||||
#include "js/Conversions.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "js/SliceBudget.h"
|
||||
#include "js/StructuredClone.h"
|
||||
#if ENABLE_INTL_API
|
||||
|
@ -13,12 +13,12 @@
|
||||
#include "jsfriendapi.h"
|
||||
#include "jsgc.h"
|
||||
#include "jsiter.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jswatchpoint.h"
|
||||
#include "jswrapper.h"
|
||||
|
||||
#include "gc/Marking.h"
|
||||
#include "jit/JitCompartment.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "proxy/DeadObjectProxy.h"
|
||||
#include "vm/Debugger.h"
|
||||
|
@ -15,13 +15,13 @@
|
||||
#include "jsgc.h"
|
||||
#include "jsobj.h"
|
||||
#include "jsprf.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jswatchpoint.h"
|
||||
#include "jsweakmap.h"
|
||||
#include "jswrapper.h"
|
||||
#include "prmjtime.h"
|
||||
|
||||
#include "builtin/TestingFunctions.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "proxy/DeadObjectProxy.h"
|
||||
#include "vm/ArgumentsObject.h"
|
||||
#include "vm/WrapperObject.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "jsatom.h"
|
||||
#include "jscntxt.h"
|
||||
#include "jsobj.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jsscript.h"
|
||||
#include "jsstr.h"
|
||||
#include "jstypes.h"
|
||||
@ -35,6 +34,7 @@
|
||||
#include "jit/Ion.h"
|
||||
#include "jit/JitFrameIterator.h"
|
||||
#include "js/CallNonGenericMethod.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/GlobalObject.h"
|
||||
#include "vm/Interpreter.h"
|
||||
#include "vm/Shape.h"
|
||||
|
@ -19,13 +19,13 @@
|
||||
#include "jsgc.h"
|
||||
#include "jsobj.h"
|
||||
#include "jsopcode.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jsscript.h"
|
||||
#include "jstypes.h"
|
||||
#include "jsutil.h"
|
||||
|
||||
#include "ds/Sort.h"
|
||||
#include "gc/Marking.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/GeneratorObject.h"
|
||||
#include "vm/GlobalObject.h"
|
||||
#include "vm/Interpreter.h"
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "jsnum.h"
|
||||
#include "jsopcode.h"
|
||||
#include "jsprf.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jsscript.h"
|
||||
#include "jsstr.h"
|
||||
#include "jstypes.h"
|
||||
@ -44,6 +43,7 @@
|
||||
#include "gc/Marking.h"
|
||||
#include "jit/BaselineJIT.h"
|
||||
#include "js/MemoryMetrics.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/ArgumentsObject.h"
|
||||
#include "vm/Interpreter.h"
|
||||
#include "vm/ProxyObject.h"
|
||||
|
@ -730,7 +730,7 @@ namespace js {
|
||||
* internal methods in vm/NativeObject.h.
|
||||
*
|
||||
* Proxies override the behavior of internal methods. So when 'obj' is a proxy,
|
||||
* any one of the functions below could do just about anything. See jsproxy.h.
|
||||
* any one of the functions below could do just about anything. See js/Proxy.h.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
@ -51,7 +51,6 @@ EXPORTS += [
|
||||
'jsfriendapi.h',
|
||||
'jsprf.h',
|
||||
'jsprototypes.h',
|
||||
'jsproxy.h',
|
||||
'jspubtd.h',
|
||||
'jstypes.h',
|
||||
'jsversion.h',
|
||||
@ -79,6 +78,7 @@ EXPORTS.js += [
|
||||
'../public/Principals.h',
|
||||
'../public/ProfilingFrameIterator.h',
|
||||
'../public/ProfilingStack.h',
|
||||
'../public/Proxy.h',
|
||||
'../public/RequiredDefines.h',
|
||||
'../public/RootingAPI.h',
|
||||
'../public/SliceBudget.h',
|
||||
|
@ -4,8 +4,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jsproxy.h"
|
||||
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/ProxyObject.h"
|
||||
|
||||
#include "jscntxtinlines.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#ifndef proxy_DeadObjectProxy_h
|
||||
#define proxy_DeadObjectProxy_h
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
@ -4,9 +4,9 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "jswrapper.h" // UncheckedUnwrap
|
||||
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/ProxyObject.h"
|
||||
|
||||
#include "jsobjinlines.h"
|
||||
|
@ -4,13 +4,14 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "js/Proxy.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "jsapi.h"
|
||||
#include "jscntxt.h"
|
||||
#include "jsfun.h"
|
||||
#include "jsgc.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jswrapper.h"
|
||||
|
||||
#include "gc/Marking.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#ifndef proxy_ScriptedDirectProxyHandler_h
|
||||
#define proxy_ScriptedDirectProxyHandler_h
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#ifndef proxy_ScriptedIndirectProxyHandler_h
|
||||
#define proxy_ScriptedIndirectProxyHandler_h
|
||||
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
@ -7,8 +7,7 @@
|
||||
#ifndef vm_ProxyObject_h
|
||||
#define vm_ProxyObject_h
|
||||
|
||||
#include "jsproxy.h"
|
||||
|
||||
#include "js/Proxy.h"
|
||||
#include "vm/NativeObject.h"
|
||||
|
||||
namespace js {
|
||||
|
@ -20,9 +20,6 @@
|
||||
|
||||
#include "jsatom.h"
|
||||
#include "jsclist.h"
|
||||
#ifdef DEBUG
|
||||
# include "jsproxy.h"
|
||||
#endif
|
||||
#include "jsscript.h"
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
@ -34,6 +31,9 @@
|
||||
#include "gc/Tracer.h"
|
||||
#include "irregexp/RegExpStack.h"
|
||||
#include "js/HashTable.h"
|
||||
#ifdef DEBUG
|
||||
# include "js/Proxy.h" // For AutoEnterPolicy
|
||||
#endif
|
||||
#include "js/Vector.h"
|
||||
#include "vm/CommonPropertyNames.h"
|
||||
#include "vm/DateTime.h"
|
||||
|
@ -8,9 +8,9 @@
|
||||
#include "WrapperFactory.h"
|
||||
#include "AccessCheck.h"
|
||||
#include "jsfriendapi.h"
|
||||
#include "jsproxy.h"
|
||||
#include "jswrapper.h"
|
||||
#include "js/StructuredClone.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "mozilla/dom/BindingUtils.h"
|
||||
#include "mozilla/dom/BlobBinding.h"
|
||||
#include "mozilla/dom/File.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "AccessCheck.h"
|
||||
#include "jsfriendapi.h"
|
||||
#include "jsproxy.h"
|
||||
#include "js/Proxy.h"
|
||||
#include "js/StructuredClone.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
|
@ -8,9 +8,9 @@
|
||||
#define xpcpublic_h
|
||||
|
||||
#include "jsapi.h"
|
||||
#include "jsproxy.h"
|
||||
#include "js/HeapAPI.h"
|
||||
#include "js/GCAPI.h"
|
||||
#include "js/Proxy.h"
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsIURI.h"
|
||||
|
Loading…
Reference in New Issue
Block a user