Bug 868130 - Move nsCxPusher into XPConnect. r=gabor

The JSContext stack is an XPConnect construction. In particular, there are
situations where we want to manipulate it outside the lifetime of nsContentUtils
but within the lifetime of the stack itself. In order to do this cleanly, it's
helpful to use private XPConnect APIs. So the first step here is to move this into
js/src/xpconnect, so that we can take advantage of the stuff in xpcprivate.h.

--HG--
rename : content/base/src/nsCxPusher.cpp => js/xpconnect/src/nsCxPusher.cpp
rename : content/base/public/nsCxPusher.h => js/xpconnect/src/nsCxPusher.h
This commit is contained in:
Bobby Holley 2013-05-22 10:05:26 -06:00
parent 54ef3d2952
commit fbfc8f9abe
6 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,6 @@ EXPORTS += [
'nsContentPolicyUtils.h',
'nsContentUtils.h',
'nsCopySupport.h',
'nsCxPusher.h',
'nsDOMFile.h',
'nsDeprecatedOperationList.h',
'nsDocElementCreatedNotificationRunner.h',

View File

@ -36,7 +36,6 @@ CPPSRCS = \
nsCopySupport.cpp \
nsCrossSiteListenerProxy.cpp \
nsCSPService.cpp \
nsCxPusher.cpp \
nsDataDocumentContentPolicy.cpp \
Attr.cpp \
nsDOMAttributeMap.cpp \

View File

@ -15,6 +15,7 @@ MSVC_ENABLE_PGO := 1
FORCE_STATIC_LIB = 1
LIBXUL_LIBRARY = 1
CPPSRCS = \
nsCxPusher.cpp \
nsScriptError.cpp \
nsXPConnect.cpp \
XPCCallContext.cpp \

View File

@ -10,6 +10,7 @@ EXPORTS += [
'BackstagePass.h',
'GeneratedEvents.h',
'XPCJSMemoryReporter.h',
'nsCxPusher.h',
'qsObjectHelper.h',
'xpcObjectHelper.h',
'xpcpublic.h',