Lines Matching refs:rv

107     nsresult rv = fastLoadService->QueryInterface(aIID, aResult);
109 return rv;
137 nsresult rv;
140 rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
142 if (NS_FAILED(rv))
143 return rv;
148 rv = file->AppendNative(name);
149 if (NS_FAILED(rv))
150 return rv;
164 nsresult rv = NS_NewFastLoadFileReader(getter_AddRefs(stream), aSrcStream);
165 if (NS_FAILED(rv))
166 return rv;
237 nsresult rv = NS_ERROR_NOT_AVAILABLE;
246 rv = control->HasMuxedDocument(aURISpec, aResult);
252 rv = control->HasMuxedDocument(aURISpec, aResult);
255 return rv;
262 nsresult rv = NS_ERROR_NOT_AVAILABLE;
273 rv = control->StartMuxedDocument(aURI, aURISpec);
274 if (NS_SUCCEEDED(rv) || rv != NS_ERROR_NOT_AVAILABLE)
275 return rv;
281 rv = mFileIO->GetOutputStream(getter_AddRefs(output));
282 if (NS_FAILED(rv))
283 return rv;
286 rv = NS_NewFastLoadFileUpdater(getter_AddRefs(mOutputStream),
289 if (NS_FAILED(rv))
290 return rv;
304 rv = control->StartMuxedDocument(aURI, aURISpec);
306 return rv;
312 nsresult rv = NS_ERROR_NOT_AVAILABLE;
321 rv = control->SelectMuxedDocument(aURI, aResult);
322 if (NS_SUCCEEDED(rv))
327 if (rv == NS_ERROR_NOT_AVAILABLE && mOutputStream) {
330 rv = control->SelectMuxedDocument(aURI, aResult);
331 if (NS_SUCCEEDED(rv))
336 return rv;
342 nsresult rv = NS_ERROR_NOT_AVAILABLE;
351 rv = control->EndMuxedDocument(aURI);
354 if (rv == NS_ERROR_NOT_AVAILABLE && mOutputStream) {
357 rv = control->EndMuxedDocument(aURI);
361 return rv;
382 nsresult rv = aFile->GetNativePath(path);
383 if (NS_FAILED(rv))
384 return rv;
393 rv = aControl->ComputeChecksum(&checksum);
394 if (NS_FAILED(rv))
395 return rv;
414 nsresult rv = control->GetChecksum(&checksum);
415 if (NS_FAILED(rv))
416 return rv;
419 rv = aFile->GetNativePath(path);
420 if (NS_FAILED(rv))
421 return rv;
454 nsresult rv;
457 rv = seekable->Seek(nsISeekableStream::NS_SEEK_SET, entry->mOffset);
458 if (NS_FAILED(rv))
459 return rv;
461 rv = mInputStream->ReadObject(PR_TRUE, aPtrAddr);
462 if (NS_FAILED(rv))
463 return rv;
484 nsresult rv;
488 rv = aInputStream->Read32(&nextOffset);
489 if (NS_FAILED(rv))
490 return rv;
497 rv = seekable->Tell(&thisOffset);
498 if (NS_FAILED(rv))
499 return rv;
501 rv = seekable->Seek(nsISeekableStream::NS_SEEK_SET, nextOffset);
502 if (NS_FAILED(rv))
503 return rv;
533 nsresult rv;
541 rv = seekable->Tell(&saveOffset);
542 if (NS_FAILED(rv))
543 return rv;
545 rv = aOutputStream->Write32(0); // nextOffset placeholder
546 if (NS_FAILED(rv))
547 return rv;
549 rv = aOutputStream->WriteObject(aObject, PR_TRUE);
550 if (NS_FAILED(rv))
551 return rv;
554 rv = seekable->Tell(&nextOffset);
555 if (NS_FAILED(rv))
556 return rv;
558 rv = seekable->Seek(nsISeekableStream::NS_SEEK_SET, saveOffset);
559 if (NS_FAILED(rv))
560 return rv;
562 rv = aOutputStream->Write32(nextOffset);
563 if (NS_FAILED(rv))
564 return rv;
566 rv = seekable->Seek(nsISeekableStream::NS_SEEK_SET, nextOffset);
567 if (NS_FAILED(rv))
568 return rv;