icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -4413,22 +4413,21 @@ bool ContentParent::SendRequestMemoryReport(
|
|||
const bool& aMinimizeMemoryUsage, const Maybe<FileDescriptor>& aDMDFile) {
|
||||
// This automatically cancels the previous request.
|
||||
mMemoryReportRequest = MakeUnique<MemoryReportRequestHost>(aGeneration);
|
||||
// If we run the callback in response to a reply, then by definition |this|
|
||||
// is still alive, so the ref pointer is redundant, but it seems easier
|
||||
// to hold a strong reference than to worry about that.
|
||||
RefPtr<ContentParent> self(this);
|
||||
PContentParent::SendRequestMemoryReport(
|
||||
aGeneration, aAnonymize, aMinimizeMemoryUsage, aDMDFile,
|
||||
[&, self](const uint32_t& aGeneration2) {
|
||||
if (self->mMemoryReportRequest) {
|
||||
self->mMemoryReportRequest->Finish(aGeneration2);
|
||||
self->mMemoryReportRequest = nullptr;
|
||||
}
|
||||
},
|
||||
[&, self](mozilla::ipc::ResponseRejectReason) {
|
||||
self->mMemoryReportRequest = nullptr;
|
||||
});
|
||||
return IPC_OK();
|
||||
PContentParent::SendRequestMemoryReport(aGeneration, aAnonymize,
|
||||
aMinimizeMemoryUsage, aDMDFile)
|
||||
->Then(
|
||||
GetCurrentSerialEventTarget(), __func__,
|
||||
[self](uint32_t aGeneration2) {
|
||||
if (self->mMemoryReportRequest) {
|
||||
self->mMemoryReportRequest->Finish(aGeneration2);
|
||||
self->mMemoryReportRequest = nullptr;
|
||||
}
|
||||
},
|
||||
[self](mozilla::ipc::ResponseRejectReason) {
|
||||
self->mMemoryReportRequest = nullptr;
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult ContentParent::RecvAddMemoryReport(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue