gecko-dev/xpcom/io
brendan%mozilla.org b00819c93c - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-17 09:52:55 +00:00
..
.cvsignore
macDirectoryCopy.c
macDirectoryCopy.h
Makefile.in FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
makefile.win FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
MANIFEST Fix for bug 64501 - allow embedding apps to specify app registry location. Moves appfilelocprovider into xpcom. r=dougt@netscape.com, sr=brendan@mozilla.org 2001-01-18 22:51:57 +00:00
MANIFEST_IDL FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsAppDirectoryServiceDefs.h Fix for bug 64501 - allow embedding apps to specify app registry location. Moves appfilelocprovider into xpcom. r=dougt@netscape.com, sr=brendan@mozilla.org 2001-01-18 22:51:57 +00:00
nsAppFileLocationProvider.cpp FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsAppFileLocationProvider.h Fix for bug 64501 - allow embedding apps to specify app registry location. Moves appfilelocprovider into xpcom. r=dougt@netscape.com, sr=brendan@mozilla.org 2001-01-18 22:51:57 +00:00
nsBinaryStream.cpp FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsBinaryStream.h FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsByteArrayInputStream.cpp Implementation of ReadSegments to support less copying in the parser. r=rpotts, sr=jst 2000-12-12 21:57:47 +00:00
nsByteArrayInputStream.h
nsDirectoryService.cpp FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsDirectoryService.h Bug 74247 - Fizzilla should use $HOME/Library/Mozilla to store profiles. r=pinkerton/sr=sfraser/a=asa 2001-06-14 01:24:22 +00:00
nsDirectoryServiceDefs.h Bug 74247 - Fizzilla should use $HOME/Library/Mozilla to store profiles. r=pinkerton/sr=sfraser/a=asa 2001-06-14 01:24:22 +00:00
nsEscape.cpp Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com. 2001-06-21 22:02:47 +00:00
nsEscape.h Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com. 2001-06-21 22:02:47 +00:00
nsFastLoadFile.cpp - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsFastLoadFile.h - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsFastLoadPtr.h Try to placate the HP-UX compiler by keeping gFastLoadService_'s decl before any uses in a template class. 2001-07-31 23:23:38 +00:00
nsFastLoadService.cpp - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsFastLoadService.h - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsFileSpec.cpp Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
nsFileSpec.h Fix Os/2 bustage 2001-06-15 03:48:00 +00:00
nsFileSpecBeOS.cpp Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
nsFileSpecImpl.cpp
nsFileSpecImpl.h
nsFileSpecMac.cpp bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process. 2001-06-17 05:23:38 +00:00
nsFileSpecOS2.cpp r=mkaply, a=blizzard 2001-01-31 21:47:40 +00:00
nsFileSpecStreaming.cpp
nsFileSpecStreaming.h
nsFileSpecUnix.cpp fixing bustage 2001-04-18 05:17:36 +00:00
nsFileSpecWin.cpp
nsFileStream.cpp 67799, 55814. sr=bienvenu. Propogate the error values for streams. 2001-03-30 05:24:34 +00:00
nsFileStream.h Fix bug 71064; give the file stream classes private, and unimplemented copy constructors and assignment operators, prevent clients from passing them by value. r=waterson, sr=scc 2001-04-13 22:50:23 +00:00
nsIBaseStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIBinaryInputStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIBinaryOutputStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIBufferInputStream.idl
nsIBufferOutputStream.idl
nsIByteArrayInputStream.idl
nsIDirectoryService.idl r=rpotts. comment changes only. 48726. adding status to idl files of api rev. ifaces. 2001-03-24 00:22:18 +00:00
nsIFastLoadFileControl.idl - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsIFastLoadService.idl - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsIFile.idl Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
nsIFileSpec.idl Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nsIFileStream.cpp Renaming xpcom file streams. b=73169, r=sfraser@netscape.com, sr=darin@netscape.com 2001-03-26 23:35:06 +00:00
nsIFileStream.h Renaming xpcom file streams. b=73169, r=sfraser@netscape.com, sr=darin@netscape.com 2001-03-26 23:35:06 +00:00
nsIInputStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIInputStreamTee.idl Added interface and implementation for tee'ing off an input stream read to 2001-03-02 06:10:00 +00:00
nsILineInputStream.idl Add an nILineInputStream interface, a ReadLine() helper function, and an 2001-06-28 03:19:51 +00:00
nsILocalFile.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsILocalFileMac.h Make file with no extension have correct type and creator info based on MIME type. b = 64704; r = law; sr = sfraser 2001-05-03 01:12:15 +00:00
nsInputStreamTee.cpp Fixes bug 71921 "nsInputStreamTee::WriteSegmentFun has a minor bug" r=beard 2001-03-29 02:42:00 +00:00
nsIObjectInputStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIObjectOutputStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIOutputStream.idl FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nsIPipe.idl Bug #32222 --> re-expose the search method on the input stream of a pipe. 2001-04-07 21:29:11 +00:00
nsIScriptableInputStream.idl
nsISeekableStream.idl - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsIStorageStream.idl
nsIStreamBufferAccess.idl - Better failure codes from nsXULPrototypeScript::Deserialize. 2001-08-17 09:52:55 +00:00
nsIStringStream.cpp
nsIStringStream.h
nsIUnicharInputStream.h
nsLinebreakConverter.cpp fix Bugzilla Bug 75853 CR and LF are naked ifdefs 2001-04-18 05:59:43 +00:00
nsLinebreakConverter.h
nsLocalFile.h use nsLocalFileMac.h for osx. r=saari, sr=hyatt bug#75653 2001-04-15 04:10:12 +00:00
nsLocalFileCommon.cpp Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
nsLocalFileMac.cpp Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
nsLocalFileMac.h Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com. 2001-06-21 22:02:47 +00:00
nsLocalFileOS2.cpp Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst 2001-07-24 18:38:25 +00:00
nsLocalFileOS2.h Fix OS/2 breakage. We have an nsLocalFile too. 2001-06-22 02:57:07 +00:00
nsLocalFileUnix.cpp Fix for nsLocalFile::CopyTo not fully implemented on Unix. 2001-08-03 03:42:04 +00:00
nsLocalFileUnix.h Fix for nsLocalFile::CopyTo not fully implemented on Unix. 2001-08-03 03:42:04 +00:00
nsLocalFileWin.cpp enable MOZ_TIMELINE tool, bug 78793, r=rogc, sr=waterson 2001-08-17 02:03:34 +00:00
nsLocalFileWin.h Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com. 2001-06-21 22:02:47 +00:00
nsPipe2.cpp Bug #32222 --> re-expose the search method on the input stream of a pipe. 2001-04-07 21:29:11 +00:00
nsScriptableInputStream.cpp
nsScriptableInputStream.h Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nsSegmentedBuffer.cpp
nsSegmentedBuffer.h
nsSpecialSystemDirectory.cpp Bug 90686 - Can't migrate profiles under MacOS X. Make Mac_PreferencesDirectory return the prefs dir of the classic environment under OS X so we can find 4.x profile info. r=sdagley/sr=sfraser. 2001-08-09 13:12:10 +00:00
nsSpecialSystemDirectory.h Bug 74247 - Fizzilla should use $HOME/Library/Mozilla to store profiles. r=pinkerton/sr=sfraser/a=asa 2001-06-14 01:24:22 +00:00
nsStdFileStream.cpp
nsStdFileStream.h #56767 2000-11-28 23:27:38 +00:00
nsStorageStream.cpp Fix for assert when loading content from the memory cache (ie. hitting Back). r=jst 2000-12-13 23:11:32 +00:00
nsStorageStream.h
nsStringIO.h bug #49817: fix |normalize_forward|, |normalize_backward|; make |Begin(Read|Writ)ing| call |normalize_forward|; pass iterators by reference. r=mjudge 2000-09-02 04:10:44 +00:00
nsUnicharInputStream.cpp Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00