Commit Graph
29 Commits
Author SHA1 Message Date
Andrea Marchesini 9da959cd7d Bug 1360454 - IPCBlobInputStream can take the original stream directly if created on the parent process, r=smaug 2017-04-28 12:16:13 +02:00
Andrea Marchesini 1e92831716 Bug 1353629 - PBlob refactoring - part 10 - Make nsFileInputStream cloneable, r=smaug
This is important to avoid extra copy when IPCInputStreamStorage::GetStream()
returns a file inputStream
2017-04-24 12:09:41 +02:00
Sebastian Hengst 5661c36960 Backed out changeset b225ae4bfc09 (bug 1353629) 2017-04-20 18:36:42 +02:00
Andrea Marchesini 46fb58097f Bug 1353629 - PBlob refactoring - part 10 - Make nsFileInputStream cloneable, r=smaug
This is important to avoid extra copy when IPCInputStreamStorage::GetStream()
returns a file inputStream
2017-04-20 15:20:56 +02:00
Andrea Marchesini 03fc90266a Bug 1353684 - nsIFileInputStream must return NS_ERROR_NOT_FOUND if Deserialize() fails, r=smaug 2017-04-20 13:39:51 +02:00
Andrea Marchesini 489b14c754 Bug 1354052 - Remove NS_NO_INPUT_BUFFERING from nsFileStreams.cpp, r=qdot 2017-04-07 09:33:04 +02:00
Andrea Marchesini 837add14a5 Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug 2017-02-22 09:41:51 +01:00
Iris Hsiao 0230dfa2c7 Backed out 5 changesets (bug 1339710) for GTest failures in TestSlicedInputStream.StartBiggerThan
Backed out changeset 7c0ec55b44dc (bug 1339710)
Backed out changeset cbb4e1c2aada (bug 1339710)
Backed out changeset c685dca493f5 (bug 1339710)
Backed out changeset 4761a15d45fd (bug 1339710)
Backed out changeset 7561692c1bc7 (bug 1339710)
2017-02-22 16:19:50 +08:00
Andrea Marchesini 3bb60b8a9c Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug 2017-02-22 07:56:29 +01:00
Jan Varga cd5788c697 Bug 1311466 - Part 4: Add a C++ only getFileDescriptor() method to nsIFileMetadata interface. All file stream implementations (nsFileInputStream, nsPartialFileInputStream, nsFileOutputStream, nsAtomicFileOutputStream, nsSafeFileOutputStream and nsFileStream) support nsIFileMetadata interface so the new method is available on all these streams. The returned file descriptor can be used for memory mapping of the underlying file. The new method exposes stream's internal member variable, so it should be used carefully; r=froydnj 2016-10-25 21:18:52 +02:00
Josh Matthews 7709e1fa44 Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=nfroydj 2016-09-29 06:20:00 +02:00
Wes Kocher de82ae2a15 Backed out changeset 57e78c503c4e (bug 1294450) for build bustage a=backout 2016-09-28 17:38:00 -07:00
Josh Matthews d8d9b9aaf6 Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=froydnj 2016-09-28 18:38:51 -04:00
Andrea Marchesini abb177b3ce Bug 1293949 - nsFileInputStream must do the pending open step before been serialized, r=mayhemer 2016-09-23 15:29:05 +02:00
Nicholas Nethercote 887efe04d5 Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Kan-Ru Chen a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Wei-Cheng Pan a87ccbfa5e Bug 1264566 - Part 2: Refactor all usage of FileDescriptor. r=valentin
Callers should use a UniquePtr to hold the platform handle.

MozReview-Commit-ID: 6BWnyAf4b3a
2016-05-27 16:12:51 +08:00
Eden Chuang 8b96fb8114 Bug 772528 - Remove nsFileInputStream::Seek() from nsPartialFileInputStream::Init(). r=baku 2016-03-21 10:48:59 +08:00
198d2bdb3d Bug 407537 - Dont normalize a nonexistant file r=biesi 2016-02-03 13:47:20 -05:00
Carsten "Tomcat" Book b3e9653f07 Backed out changeset b1bbd5c1d6c0 (bug 772528) for xpcshell test failures 2016-01-22 11:46:50 +01:00
Eden Chuang b35524660e Bug 772528 - Remove nsFileInputStream::Seek() from nsPartialFileInputStream::Init(). r=baku 2016-01-21 14:08:18 +08:00
Gian-Carlo Pascutto fafe68569d Bug 1211090 - Add fallocate support to nsIOutputFileStream and use it. r=froydnj 2015-12-21 17:50:53 +01:00
Juan Gomez 89035d527e Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Eric Rahm a946e54446 Bug 1177541 - Remove warning if file is not found during deferred open. r=mcmanus
When doing a deferred open we should not emit a warning if the file is not
found. The proper return code is still returned.
2015-06-30 09:33:37 -07:00
Ryan VanderMeulen 7aba9d7002 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Jesse Ruderman 6a529d5533 Bug 1133142 - downgrade 'mTempFile not equal to mTargetFile' from assertion to warning. r=yoric 2015-03-05 01:31:41 -08:00
Jesse Ruderman 79559c008b No bug - remove trailing whitespace 2015-03-05 01:30:25 -08:00
James Kitchener f3e2ed9bfd Bug 1100184 - Flatten netwerk/base/{public,src}/ directories. r=mcmanus, r=poiru 2015-01-20 03:58:00 -05:00