Bug 1577819, part 1 - Rename mozilla::dom::ProcType to mozilla::dom::WebIDLProcType. r=Ehsan

There is also a mozilla::ProcType, which makes things
confusing. dom::ProcType seems to be used only for passing values to
JS via WebIDL, so I put WebIDL in the name.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew McCreight 2019-08-30 21:52:36 +00:00
Родитель 4a7b5a6566
Коммит d8dc15b323
2 изменённых файлов: 14 добавлений и 9 удалений

Просмотреть файл

@ -789,7 +789,7 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
// parent, basic info.
procInfo.mPid = parentPid;
procInfo.mFilename.Assign(parentInfo.filename);
procInfo.mType = mozilla::dom::ProcType::Browser;
procInfo.mType = mozilla::dom::WebIDLProcType::Browser;
procInfo.mVirtualMemorySize = parentInfo.virtualMemorySize;
procInfo.mResidentSetSize = parentInfo.residentSetSize;
procInfo.mCpuUser = parentInfo.cpuUser;
@ -822,7 +822,8 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
}
// Basic info.
childProcInfo->mChildID = info.childId;
childProcInfo->mType = static_cast<ProcType>(info.type);
childProcInfo->mType =
static_cast<WebIDLProcType>(info.type);
childProcInfo->mPid = info.pid;
childProcInfo->mFilename.Assign(info.filename);
childProcInfo->mVirtualMemorySize = info.virtualMemorySize;

Просмотреть файл

@ -437,12 +437,10 @@ partial namespace ChromeUtils {
void privateNoteIntentionalCrash();
};
/**
* Holds information about Firefox running processes & threads.
*
* See widget/ProcInfo.h for fields documentation.
/*
* This type is a WebIDL representation of mozilla::ProcType.
*/
enum ProcType {
enum WebIDLProcType {
"web",
"file",
"extension",
@ -455,6 +453,12 @@ enum ProcType {
"unknown"
};
/**
* These dictionaries hold information about Firefox running processes and
* threads.
*
* See widget/ProcInfo.h for fields documentation.
*/
dictionary ThreadInfoDictionary {
long long tid = 0;
DOMString name = "";
@ -473,7 +477,7 @@ dictionary ChildProcInfoDictionary {
sequence<ThreadInfoDictionary> threads = [];
// Firefox info
unsigned long long ChildID = 0;
ProcType type = "web";
WebIDLProcType type = "web";
};
dictionary ParentProcInfoDictionary {
@ -487,7 +491,7 @@ dictionary ParentProcInfoDictionary {
sequence<ThreadInfoDictionary> threads = [];
sequence<ChildProcInfoDictionary> children = [];
// Firefox info
ProcType type = "browser";
WebIDLProcType type = "browser";
};
/**