Bug 1575092 - add "web COOP+COEP" process type helpers r=asuth

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Perry Jiang 2019-11-14 16:08:36 +00:00
Родитель 603b880e70
Коммит e0adb2d2a9
2 изменённых файлов: 7 добавлений и 0 удалений

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

@ -727,6 +727,11 @@ bool IsWebRemoteType(const nsAString& aContentProcessType) {
NS_LITERAL_STRING(DEFAULT_REMOTE_TYPE));
}
bool IsWebCoopCoepRemoteType(const nsAString& aContentProcessType) {
return StringBeginsWith(aContentProcessType,
NS_LITERAL_STRING(WITH_COOP_COEP_REMOTE_TYPE_PREFIX));
}
/*static*/
uint32_t ContentParent::GetMaxProcessCount(
const nsAString& aContentProcessType) {

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

@ -1394,6 +1394,8 @@ const nsDependentSubstring RemoteTypePrefix(
// This is based on isWebRemoteType in E10SUtils.jsm.
bool IsWebRemoteType(const nsAString& aContentProcessType);
bool IsWebCoopCoepRemoteType(const nsAString& aContentProcessType);
} // namespace dom
} // namespace mozilla