Bug 1627392 - Add missing includes and namespaces to xpcom/base. r=xpcom-reviewers,sg

Differential Revision: https://phabricator.services.mozilla.com/D69658

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eric Rahm 2020-04-08 10:12:33 +00:00
parent e7b458ff19
commit 8e4a18ed64
7 changed files with 19 additions and 2 deletions

View File

@ -8,6 +8,8 @@
#include "VRProcessParent.h"
#include "mozilla/ipc/ProtocolUtils.h"
namespace mozilla {
class MemoryReportingProcess;
namespace ipc {

View File

@ -35,7 +35,7 @@ nsresult DebuggerOnGCRunnable::Enqueue(JSContext* aCx,
NS_IMETHODIMP
DebuggerOnGCRunnable::Run() {
AutoJSAPI jsapi;
dom::AutoJSAPI jsapi;
jsapi.Init();
if (!JS::dbg::FireOnGarbageCollectionHook(jsapi.cx(), std::move(mGCData))) {
return NS_ERROR_OUT_OF_MEMORY;

View File

@ -7,6 +7,8 @@
#ifndef mozilla_DeferredFinalize_h
#define mozilla_DeferredFinalize_h
#include <cstdint>
class nsISupports;
namespace mozilla {

View File

@ -8,6 +8,8 @@
#include "mozilla/Logging.h"
#include "mozilla/Preferences.h"
#include "mozilla/Services.h"
#include "nsIObserverService.h"
#include "nsMemory.h"
#include "nsString.h"
#include "nsXULAppAPI.h"

View File

@ -5,6 +5,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCycleCollectionParticipant.h"
#include "nsString.h"
#include "nsWrapperCache.h"
#include "jsapi.h"
#include "jsfriendapi.h"

View File

@ -6,6 +6,7 @@
#include "mozilla/ArrayUtils.h"
#include "nsAppRunner.h"
#include "nsSystemInfo.h"
#include "prsystem.h"
#include "prio.h"

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsTraceRefcnt.h"
#include "mozilla/AutoRestore.h"
#include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/IntegerPrintfMacros.h"
#include "mozilla/Path.h"
@ -12,8 +13,10 @@
#include "nsXPCOMPrivate.h"
#include "nscore.h"
#include "nsClassHashtable.h"
#include "nsContentUtils.h"
#include "nsISupports.h"
#include "nsHashKeys.h"
#include "nsPrintfCString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "prenv.h"
@ -88,6 +91,11 @@ struct MOZ_STACK_CLASS AutoTraceLogLock final {
class BloatEntry;
struct SerialNumberRecord;
using mozilla::AutoRestore;
using mozilla::CodeAddressService;
using mozilla::CycleCollectedJSContext;
using mozilla::StaticAutoPtr;
using BloatHash = nsClassHashtable<nsDepCharHashKey, BloatEntry>;
using CharPtrSet = nsTHashtable<nsCharPtrHashKey>;
using IntPtrSet = nsTHashtable<IntPtrHashKey>;
@ -163,7 +171,7 @@ struct SerialNumberRecord {
/*showLocals=*/false,
/*showThisProps=*/false);
size_t len = strlen(chars.get());
jsStack = MakeUnique<char[]>(len + 1);
jsStack = mozilla::MakeUnique<char[]>(len + 1);
memcpy(jsStack.get(), chars.get(), len + 1);
}
};