Bug 1797279 - Make PSocketProcess.ClearSessionCache return async when done r=kershaw,necko-reviewers

Originally these changes were part of D162103.

Differential Revision: https://phabricator.services.mozilla.com/D162152
This commit is contained in:
Valentin Gosu 2022-11-30 13:37:11 +00:00
parent 634735aab4
commit eb5303b075
3 changed files with 6 additions and 3 deletions

View File

@ -173,7 +173,7 @@ child:
uint32_t maxBytesPerSecond);
async PAltSvcTransaction(HttpConnectionInfoCloneArgs aConnInfo,
uint32_t aCaps);
async ClearSessionCache();
async ClearSessionCache() returns (void_t ok);
async PTRRService(bool aCaptiveIsPassed,
bool aParentalControlEnabled,
nsCString[] aDNSSuffixList);

View File

@ -466,8 +466,10 @@ SocketProcessChild::GetAndRemoveDataBridge(uint64_t aChannelId) {
return mBackgroundDataBridgeMap.Extract(aChannelId);
}
mozilla::ipc::IPCResult SocketProcessChild::RecvClearSessionCache() {
mozilla::ipc::IPCResult SocketProcessChild::RecvClearSessionCache(
ClearSessionCacheResolver&& aResolve) {
nsNSSComponent::DoClearSSLExternalAndInternalSessionCache();
aResolve(void_t{});
return IPC_OK();
}

View File

@ -104,7 +104,8 @@ class SocketProcessChild final : public PSocketProcessChild {
Maybe<RefPtr<BackgroundDataBridgeParent>> GetAndRemoveDataBridge(
uint64_t aChannelId);
mozilla::ipc::IPCResult RecvClearSessionCache();
mozilla::ipc::IPCResult RecvClearSessionCache(
ClearSessionCacheResolver&& aResolve);
already_AddRefed<PTRRServiceChild> AllocPTRRServiceChild(
const bool& aCaptiveIsPassed, const bool& aParentalControlEnabled,