Bug 925584 - Remove some unnecessary jsapi.h inclusions from .cpp files. r=Ms2ger.

--HG--
extra : rebase_source : 41fcb0e922a519ef679c1c1b6293c2b638e83a48
This commit is contained in:
Nicholas Nethercote 2013-10-10 15:22:35 -07:00
parent cbb0aadad2
commit ba1e9bce90
57 changed files with 16 additions and 64 deletions

View File

@ -24,7 +24,6 @@
#include "nsINameSpaceManager.h"
#include "nsIPersistentProperties2.h"
#include "nsISelectionController.h"
#include "jsapi.h"
#include "nsIServiceManager.h"
#include "nsITextControlFrame.h"

View File

@ -11,7 +11,6 @@
#include "plstr.h"
#include "nsXPIDLString.h"
#include "nsCOMPtr.h"
#include "jsapi.h"
#include "nsIJSRuntimeService.h"
#include "nsIServiceManager.h"
#include "nsMemory.h"

View File

@ -84,8 +84,6 @@
#include "nsIBaseWindow.h"
#include "nsIWidget.h"
#include "jsapi.h"
#include "nsNodeInfoManager.h"
#include "nsICategoryManager.h"
#include "nsIDOMDocumentType.h"

View File

@ -79,7 +79,7 @@
#include "nsIBaseWindow.h"
#include "nsIWidget.h"
#include "jsapi.h"
#include "js/GCAPI.h"
#include "nsNodeInfoManager.h"
#include "nsICategoryManager.h"

View File

@ -11,7 +11,6 @@
#include "nsNetUtil.h"
#include "nsContentUtils.h"
#include "nsUnicharUtils.h" // for nsCaseInsensitiveStringComparator()
#include "jsapi.h"
#include "nsIScriptContext.h"
#include "nsIScriptGlobalObject.h"
#include "nsIXPConnect.h"

View File

@ -24,7 +24,6 @@
#include "nsIScriptSecurityManager.h"
#include "nsIXPConnect.h"
#include "jsapi.h"
#include "nsITimer.h"

View File

@ -33,7 +33,6 @@
#include "nsRuleProcessorData.h"
#include "nsIWeakReference.h"
#include "jsapi.h"
#include "nsIXPConnect.h"
#include "nsDOMCID.h"
#include "nsIDOMScriptObjectFactory.h"

View File

@ -14,7 +14,6 @@
#include "nsXULContentSink.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "nsCOMPtr.h"

View File

@ -22,7 +22,6 @@
#include "nsNetUtil.h"
#include "nsAppDirectoryServiceDefs.h"
#include "jsapi.h"
#include "js/Tracer.h"
#include "mozilla/Preferences.h"

View File

@ -33,7 +33,6 @@
#include "mozAutoDocUpdate.h"
#include "nsTextNode.h"
#include "jsapi.h"
#include "pldhash.h"
#include "rdf.h"

View File

@ -5,7 +5,6 @@
#include "mozilla/dom/DOMException.h"
#include "jsapi.h"
#include "jsprf.h"
#include "js/OldDebugAPI.h"
#include "mozilla/HoldDropJSObjects.h"

View File

@ -2,11 +2,11 @@
* 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 nsDOMJSUtils_h__
#define nsDOMJSUtils_h__
#include "nsIScriptContext.h"
#include "jsapi.h"
class nsIJSArgArray;

View File

@ -50,7 +50,6 @@
#include "nsJSUtils.h"
#include "jsapi.h" // for JSAutoRequest
#include "js/OldDebugAPI.h" // for JS_ClearWatchPointsForObject
#include "jsfriendapi.h" // for JS_GetGlobalForFrame
#include "jswrapper.h"
#include "nsReadableUtils.h"
#include "nsDOMClassInfo.h"

View File

@ -6,7 +6,6 @@
#include "nsCOMPtr.h"
#include "nsDOMClassInfo.h"
#include "nsHashPropertyBag.h"
#include "jsapi.h"
#include "nsThread.h"
#include "DeviceStorage.h"
#include "mozilla/dom/CameraControlBinding.h"

View File

@ -25,7 +25,6 @@
#include "nsCOMPtr.h"
#include "nsDOMClassInfo.h"
#include "nsMemory.h"
#include "jsapi.h"
#include "nsThread.h"
#include <media/MediaProfiles.h>
#include "mozilla/FileUtils.h"

View File

@ -16,7 +16,6 @@
#include <camera/Camera.h>
#include "jsapi.h"
#include "GonkCameraControl.h"
#include "DOMCameraManager.h"
#include "CameraCommon.h"

View File

@ -4,7 +4,6 @@
#include "mozilla/dom/StkCommandEvent.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "nsJSON.h"
#include "SimToolKit.h"

View File

@ -7,7 +7,6 @@
#include "MobileMessageThread.h"
#include "MobileMessageService.h"
#include "SmsSegmentInfo.h"
#include "jsapi.h"
namespace mozilla {
namespace dom {

View File

@ -6,7 +6,6 @@
#include "MobileMessageCallback.h"
#include "MmsService.h"
#include "AndroidBridge.h"
#include "jsapi.h"
namespace mozilla {
namespace dom {

View File

@ -7,7 +7,6 @@
#include "SmsService.h"
#include "SmsSegmentInfo.h"
#include "AndroidBridge.h"
#include "jsapi.h"
namespace mozilla {
namespace dom {

View File

@ -5,7 +5,6 @@
#include "MobileMessageCallback.h"
#include "MmsService.h"
#include "jsapi.h"
namespace mozilla {
namespace dom {

View File

@ -6,7 +6,6 @@
#include "SmsMessage.h"
#include "SmsSegmentInfo.h"
#include "SmsService.h"
#include "jsapi.h"
namespace mozilla {
namespace dom {

View File

@ -5,7 +5,6 @@
#include "SmsMessage.h"
#include "SmsService.h"
#include "jsapi.h"
#include "SmsSegmentInfo.h"
#include "mozilla/Preferences.h"
#include "nsServiceManagerUtils.h"

View File

@ -6,7 +6,6 @@
#include "mozilla/dom/ContentChild.h"
#include "SmsIPCService.h"
#include "nsXULAppAPI.h"
#include "jsapi.h"
#include "mozilla/dom/mobilemessage/SmsChild.h"
#include "SmsMessage.h"
#include "SmsFilter.h"

View File

@ -17,7 +17,6 @@
#include "nsJSUtils.h"
#include "nsJSON.h"
#include "jsapi.h"
#include "mozilla/Services.h"
#define NS_RILCONTENTHELPER_CONTRACTID "@mozilla.org/ril/content-helper;1"

View File

@ -9,7 +9,6 @@
#include "mozilla/dom/TabChild.h"
#include "nsIDOMTCPSocket.h"
#include "nsJSUtils.h"
#include "jsapi.h"
#include "jsfriendapi.h"
using mozilla::net::gNeckoChild;

View File

@ -3,8 +3,6 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "TCPServerSocketParent.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "nsJSUtils.h"
#include "TCPSocketParent.h"
#include "mozilla/unused.h"

View File

@ -5,7 +5,6 @@
#include "base/basictypes.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "jswrapper.h"

View File

@ -3,6 +3,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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 "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include "jsapi.h"

View File

@ -8,7 +8,6 @@
#include "mozilla/ClearOnShutdown.h"
#include "nsXULAppAPI.h"
#include "WifiUtils.h"
#include "jsapi.h"
#include "nsCxPusher.h"
#define NS_WIFIPROXYSERVICE_CID \

View File

@ -375,7 +375,7 @@ class TenuredHeap : public js::HeapBase<T>
template <typename T>
class MOZ_NONHEAP_CLASS Handle : public js::HandleBase<T>
{
friend class MutableHandle<T>;
friend class JS::MutableHandle<T>;
public:
/* Creates a handle from a handle of a type convertible to T. */

View File

@ -13,7 +13,6 @@
#include <string.h>
#include <unistd.h>
#include "jsapi.h"
#include "jsscript.h"
using namespace js;

View File

@ -6,7 +6,6 @@
#include "builtin/ParallelArray.h"
#include "jsapi.h"
#include "jsobj.h"
#include "vm/GlobalObject.h"

View File

@ -6,9 +6,9 @@
#ifdef __APPLE__
#include "jsapi.h"
#include <dlfcn.h>
#include <CoreFoundation/CoreFoundation.h>
#include <unistd.h>
// There are now 2 paths to the DTPerformanceSession framework. We try to load
// the one contained in /Applications/Xcode.app first, falling back to the one

View File

@ -15,7 +15,6 @@
#include <stdio.h>
#include <string.h>
#include "jsapi.h"
#include "jsatom.h"
#include "jscntxt.h"
#include "jsexn.h"

View File

@ -4,7 +4,6 @@
* 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 "jsapi.h"
#include "jscompartment.h"
#include "jsgc.h"

View File

@ -10,7 +10,6 @@
# include <valgrind/memcheck.h>
#endif
#include "jsapi.h"
#include "jscntxt.h"
#include "jsgc.h"
#include "jsonparser.h"

View File

@ -9,7 +9,6 @@
* even the ones tests.h itself included, to verify this.
*/
#include "jsapi.h"
#include "jscpucfg.h"
#include "jspubtd.h"
#include "jstypes.h"

View File

@ -12,7 +12,6 @@
#include "mozilla/PodOperations.h"
#include "mozilla/Util.h"
#include "jsapi.h"
#include "jsarray.h"
#include "jsatom.h"
#include "jscntxt.h"

View File

@ -27,7 +27,6 @@
#include <string.h>
#include "double-conversion.h"
#include "jsapi.h"
#include "jsatom.h"
#include "jscntxt.h"
#include "jsdtoa.h"

View File

@ -8,7 +8,6 @@
#include "mozilla/FloatingPoint.h"
#include "jsapi.h"
#include "jsarray.h"
#include "jsatom.h"
#include "jscntxt.h"

View File

@ -6,7 +6,6 @@
#include "jswrapper.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jscompartment.h"
#include "jsexn.h"

View File

@ -6,7 +6,6 @@
#include "vm/Debugger-inl.h"
#include "jsapi.h"
#include "jscntxt.h"
#include "jscompartment.h"
#include "jsnum.h"

View File

@ -16,7 +16,6 @@
#include <string.h>
#include "jsapi.h"
#include "jsarray.h"
#include "jsatom.h"
#include "jsautooplen.h"

View File

@ -12,7 +12,6 @@
#include <string.h>
#include "jsapi.h"
#include "jscntxt.h"
#include "jsfun.h"
#include "jsgc.h"

View File

@ -12,7 +12,6 @@
#include "mozilla/MathAlgorithms.h"
#include "mozilla/PodOperations.h"
#include "jsapi.h"
#include "jsatom.h"
#include "jscntxt.h"
#include "jsobj.h"

View File

@ -13,6 +13,8 @@
#error "Must #define XPC_MAP_QUOTED_CLASSNAME before #including xpc_map_end.h"
#endif
#include "js/Id.h"
/**************************************************************/
NS_IMETHODIMP XPC_MAP_CLASSNAME::GetClassName(char * *aClassName)
@ -108,7 +110,7 @@ NS_IMETHODIMP XPC_MAP_CLASSNAME::PostTransplant(nsIXPConnectWrappedNative *wrapp
#endif
#ifndef XPC_MAP_WANT_ADDPROPERTY
NS_IMETHODIMP XPC_MAP_CLASSNAME::AddProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, jsval * vp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::AddProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, JS::Value * vp, bool *_retval)
{NS_ERROR("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif
@ -118,17 +120,17 @@ NS_IMETHODIMP XPC_MAP_CLASSNAME::DelProperty(nsIXPConnectWrappedNative *wrapper,
#endif
#ifndef XPC_MAP_WANT_GETPROPERTY
NS_IMETHODIMP XPC_MAP_CLASSNAME::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, jsval * vp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, JS::Value * vp, bool *_retval)
{NS_WARNING("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif
#ifndef XPC_MAP_WANT_SETPROPERTY
NS_IMETHODIMP XPC_MAP_CLASSNAME::SetProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, jsval * vp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::SetProperty(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, JS::Value * vp, bool *_retval)
{NS_WARNING("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif
#ifndef XPC_MAP_WANT_NEWENUMERATE
NS_IMETHODIMP XPC_MAP_CLASSNAME::NewEnumerate(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, uint32_t enum_op, jsval * statep, jsid * idp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::NewEnumerate(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, uint32_t enum_op, JS::Value * statep, jsid * idp, bool *_retval)
{NS_ERROR("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif
@ -143,7 +145,7 @@ NS_IMETHODIMP XPC_MAP_CLASSNAME::NewResolve(nsIXPConnectWrappedNative *wrapper,
#endif
#ifndef XPC_MAP_WANT_CONVERT
NS_IMETHODIMP XPC_MAP_CLASSNAME::Convert(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, uint32_t type, jsval * vp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::Convert(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, uint32_t type, JS::Value * vp, bool *_retval)
{NS_ERROR("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif
@ -153,7 +155,7 @@ NS_IMETHODIMP XPC_MAP_CLASSNAME::Finalize(nsIXPConnectWrappedNative *wrapper, JS
#endif
#ifndef XPC_MAP_WANT_CHECKACCESS
NS_IMETHODIMP XPC_MAP_CLASSNAME::CheckAccess(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, uint32_t mode, jsval * vp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::CheckAccess(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, jsid id, uint32_t mode, JS::Value * vp, bool *_retval)
{NS_ERROR("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif
@ -168,7 +170,7 @@ NS_IMETHODIMP XPC_MAP_CLASSNAME::Construct(nsIXPConnectWrappedNative *wrapper, J
#endif
#ifndef XPC_MAP_WANT_HASINSTANCE
NS_IMETHODIMP XPC_MAP_CLASSNAME::HasInstance(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, const jsval &val, bool *bp, bool *_retval)
NS_IMETHODIMP XPC_MAP_CLASSNAME::HasInstance(nsIXPConnectWrappedNative *wrapper, JSContext * cx, JSObject * obj, const JS::Value &val, bool *bp, bool *_retval)
{NS_ERROR("never called"); return NS_ERROR_NOT_IMPLEMENTED;}
#endif

View File

@ -60,7 +60,6 @@
#include "MediaStreamList.h"
#include "MediaStreamTrack.h"
#include "nsIScriptGlobalObject.h"
#include "jsapi.h"
#include "DOMMediaStream.h"
#endif

View File

@ -20,7 +20,6 @@
#include "MediaStreamList.h"
#include "nsIScriptGlobalObject.h"
#include "mozilla/Preferences.h"
#include "jsapi.h"
#endif
using namespace mozilla;

View File

@ -6,7 +6,6 @@
#include "sqlite3.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "nsPrintfCString.h"

View File

@ -2,7 +2,6 @@
#include "jsctypes-test.h"
#include "jsctypes-test-finalizer.h"
#include "jsapi.h"
#if defined(XP_WIN)
#define snprintf _snprintf

View File

@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jsctypes-test.h"
#include "jsapi.h"
#include "nsCRTGlue.h"
#include <math.h>
#include <stdarg.h>

View File

@ -7,7 +7,6 @@
#include "nsIXPConnect.h"
#include "nsThreadUtils.h"
#include "nsCxPusher.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "js/OldDebugAPI.h"
#include "mozilla/ModuleUtils.h"

View File

@ -19,7 +19,7 @@
#include "nsIWebNavigation.h"
#include "nsIInterfaceRequestorUtils.h"
#include "shared-libraries.h"
#include "jsapi.h"
#include "js/Value.h"
using std::string;

View File

@ -50,4 +50,4 @@ InfoObject::InfoObject(JSContext *aCx) : mCx(aCx), mObj(aCx), mOk(true)
mObj = JS_NewObject(mCx, NULL, NULL, NULL);
if (!mObj)
mOk = false;
}
}

View File

@ -27,7 +27,6 @@
#include "nsIURI.h" // for NS_IURI_IID
#include "mozilla/Endian.h"
#include "jsapi.h"
#include "jsfriendapi.h"
NS_IMPL_ISUPPORTS3(nsBinaryOutputStream, nsIObjectOutputStream, nsIBinaryOutputStream, nsIOutputStream)

View File

@ -31,7 +31,6 @@
/* For implementing GetHiddenWindowAndJSContext */
#include "nsIScriptGlobalObject.h"
#include "nsIScriptContext.h"
#include "jsapi.h"
#include "nsAppShellService.h"
#include "nsISupportsPrimitives.h"