mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
634735aab4
commit
eb5303b075
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user