74 Commits

Author SHA1 Message Date
blizzard%redhat.com
ac9d1a4c2e Back out brendan's checkin to try and get linux starting up again.
git-svn-id: svn://10.0.0.236/trunk@101334 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 19:45:11 +00:00
brendan%mozilla.org
cad980f881 - 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.


git-svn-id: svn://10.0.0.236/trunk@101289 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:52:55 +00:00
brendan%mozilla.org
f5bc62edea FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@100030 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-31 19:05:34 +00:00
mkaply%us.ibm.com
277583c416 OS/2 bustage
Didn't anyone notice the attachment I added to 86474 to prevent this?


git-svn-id: svn://10.0.0.236/trunk@99874 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 03:35:56 +00:00
gordon%netscape.com
01ee4eee70 Fix for bug 86474 and bug 79983. Truncate files used by nsFileTransport
and eliminate trailing garbage from updated cache files. r=gagan, sr=darin


git-svn-id: svn://10.0.0.236/trunk@99853 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 00:40:42 +00:00
bzbarsky%mit.edu
9c8ecd10db Add an nILineInputStream interface, a ReadLine() helper function, and an
implementation of this interface by nsFileInputStream.  Bug 81165,
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@98139 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 03:19:51 +00:00
dbaron%fas.harvard.edu
1fa5023227 Remove carriage returns (^M) to fix cement (IRIX) bustage.
git-svn-id: svn://10.0.0.236/trunk@92472 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 00:32:17 +00:00
dougt%netscape.com
97f755b7d2 Fixes bug 64686. Simple impl of ReadSegments. r=gagan@netscape.com, sr=darin@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@92408 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 19:59:36 +00:00
disttsc%bart.nl
d9ef6a1ec6 Bug 60952: nsMimeTypes.h has wrong type for APPLICATION_HTTP_INDEX, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=blake, sr=darin
Bug 68651, nsFtpConnectionThread should use NS_LITERAL_STRING, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=jag, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@90347 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 22:57:35 +00:00
dougt%netscape.com
65840ed246 fix for 69143. This patch prevents non existant files from entering into
the file transport process loop for reading.


git-svn-id: svn://10.0.0.236/trunk@90015 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 19:44:23 +00:00
dougt%netscape.com
d54a8889e3 Fixes bug 71397. s/r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89716 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-16 21:33:23 +00:00
dougt%netscape.com
21f01836f0 Minor build changes per API review. Now nsIFileURL and nsIFileChannel have their own IDL file which means that if you were using either of these two interfaces, you need to include a new include file. r=valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89380 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:41:28 +00:00
beard%netscape.com
dc0e82dc0d Since file streams can't be non-blocking, return that fact from nsFileOutputStream::GetNonBlocking(). r=dougt, sr=gagan
git-svn-id: svn://10.0.0.236/trunk@88531 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 03:43:33 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
mscott%netscape.com
9b2caee4b9 Bug #43556 --> remove obsolete reference to old class id for the mime service. use the new one.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@78452 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 00:24:13 +00:00
warren%netscape.com
f29b00bbe4 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan
git-svn-id: svn://10.0.0.236/trunk@76875 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-22 07:03:33 +00:00
warren%netscape.com
394fa5559d Removed input buffer from file input stream. Bug 41067
git-svn-id: svn://10.0.0.236/trunk@71144 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 05:33:12 +00:00
warren%netscape.com
9edaccbdac Fixed to truncate by default. Fixed permissions to default to 664.
git-svn-id: svn://10.0.0.236/trunk@65967 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 09:32:24 +00:00
warren%netscape.com
e31211b526 Fixed leak in AsyncRead/AsyncWrite. r=danm
git-svn-id: svn://10.0.0.236/trunk@65956 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 05:29:21 +00:00
warren%netscape.com
7cefc01f95 Factoring stream i/o operations into nsIStreamIO interface.
git-svn-id: svn://10.0.0.236/trunk@65799 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:20:50 +00:00
warren%netscape.com
9fa657f1cd Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
warren%netscape.com
56e48e0982 Making nsFileStream and nsBufferedStream be threadsafe.
git-svn-id: svn://10.0.0.236/trunk@62254 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-06 00:51:44 +00:00
warren%netscape.com
b07abd219e Added stream buffering. Made file transport use it. Bug #19233 r=dougt
git-svn-id: svn://10.0.0.236/trunk@59751 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 07:31:43 +00:00
warren%netscape.com
3ceb3c808c Added
git-svn-id: svn://10.0.0.236/trunk@57658 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 09:11:01 +00:00