Tom Ritter
bfbc8ca70a
Bug 1444490 Declare classses (and one method) in network/ final to reduce virtual function calls r=nwgh
...
MozReview-Commit-ID: 4oaazbPhpbc
2018-03-09 08:37:18 -06:00
Andrea Marchesini
9e8ae1dfd0
Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm
2017-07-14 08:49:22 +02:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng
e6dc9e02bc
Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
...
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Valentin Gosu
7ab7fa7d0e
Bug 1325341 - Query the cache index to get if the entry has alt data and its fileSize r=michal
...
MozReview-Commit-ID: 6wqsexqJq3u
2017-04-10 14:22:23 +03:00
Junior Hsu
388210848c
Bug 1325088 - Part 1: Add net-response-time-onstart/onstop to cache index. r=michal
2017-03-28 11:40:21 +08:00
Junior Hsu
b2dba038b5
Bug 1325091 - Add flag indicating presence of alternative data in the cache entry to cache index. r=michal
2017-03-06 18:21:59 +08:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Tim Huang
f3e7f2b8ba
Bug 1312954 - part 2: Add a new interface nsICacheStorageService.asyncVisitAllStorages() to allow visiting every cache entry. r=mayhemer
2017-02-02 22:15:00 -05:00
Michal Novotny
8e27e9090f
Bug 1320894 - Fixed serialization of cache index, r=valentin
2016-12-02 16:21:35 +01:00
Michal Novotny
783475431c
Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab
2016-11-08 21:11:30 +01:00
Carsten "Tomcat" Book
aebc351802
Backed out changeset bd16c2fde4bf (bug 1201042) for bc test failures
2016-11-07 12:58:23 +01:00
Michal Novotny
88915b4c5d
Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab
2016-11-07 10:28:46 +01:00
Michal Novotny
5642360a6c
Bug 1249304 - Optimize sorting of CacheIndex::mFrecencyArray, r=honzab
2016-10-06 11:23:52 +02:00
Michal Novotny
0ec75bbb16
Bug 1277826 - Crash in shutdownhang | mozilla::net::CacheIndex::WriteLogToDisk, r=honzab
2016-09-04 02:39:49 +02:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Andrew McCreight
a30768d792
Bug 1287623, part 4 - Make CacheIndex::gInstance a StaticRefPtr. r=mayhemer
2016-07-21 09:54:17 -07:00
Wes Kocher
971937eaaf
Backed out 5 changesets (bug 1287623) for static build bustage CLOSED TREE
...
Backed out changeset a48daec87ec9 (bug 1287623)
Backed out changeset 248153344e15 (bug 1287623)
Backed out changeset 8aa409c9b1ce (bug 1287623)
Backed out changeset 602d4d88e806 (bug 1287623)
Backed out changeset 114da8bdc0b0 (bug 1287623)
2016-07-20 15:40:33 -07:00
Andrew McCreight
824f361a41
Bug 1287623, part 4 - Make CacheIndex::gInstance a StaticRefPtr. r=mayhemer
2016-07-20 15:19:00 -07:00
Honza Bambas
ea78b38c18
Bug 1274585 - Push HTTP cache index build when asked for disk cache size, r=michal
2016-05-30 04:48:00 +02:00
Chris Peterson
41c3720394
Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
2016-05-22 13:31:11 -07:00
Michal Novotny
1dcb4c8a2f
Bug 1253883 - Do not release mRWBuf until pending read/write operation finishes, r=honzab
2016-05-11 10:48:28 +02:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Honza Bambas
4038797d13
Bug 1066970 - Show 'calculating' during HTTP cache cleaning process in preferences window, r=michal
2016-04-05 05:59:00 +02:00
J. Ryan Stinnett
f6d23d0dde
Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
...
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement. Other
methods that pass these values around also have name changes.
Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc. No changes are made to any
serialization formats. Only runtime method and variable names are updated.
No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations. These are corrected in subsequent patches
focused on behavior.
MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Michal Novotny
6b7353b910
Bug 1248389 - Cache index causing CPU loops, r=honzab
2016-02-17 11:47:47 +01:00
Aidin Gharibnavaz
bb0750ec60
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book
498dd069da
Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
d9bbb0c446
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-07 10:56:00 +01:00
Michal Novotny
3f5bea0df4
Bug 1190951 - TSan: data race netwerk/cache2/CacheIndex.cpp:1397 CacheIndex::IsUpToDate, r=valentin.gosu
2015-11-12 11:07:48 +01:00
Honza Bambas
88d540ea21
Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal
...
* * *
Bug NNNNNNN - message, r=reviewer
2015-10-22 12:11:00 +02:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Honza Bambas
213ca181dd
Bug 1165269 - Use OriginAttributes in nsILoadContextInfo, r=michal+allstars
2015-10-11 18:13:09 +02:00
Nicholas Nethercote
509ee32a16
Bug 1182961 (part 2, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
2015-07-26 20:15:36 -07:00
Nicholas Nethercote
bbb36d3ec5
Bug 1182961 (part 1, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
2015-07-28 21:14:39 -07:00
Nicholas Nethercote
edb0d9d208
Bug 1182961 (part 3, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
2015-07-26 20:35:31 -07:00
Nicholas Nethercote
95aeb00af6
Backout bff74cecc67c, ffe0edb2aae7, b60b7c267cef, 6da154b43265, bcf6fd3ab9bb (bug 1182961 parts 1--5) for possible intermittent failures and performance problems.
2015-08-06 16:30:47 -07:00
Nicholas Nethercote
af658ad229
Bug 1182961 (part 3) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
2015-07-26 20:35:31 -07:00
Nicholas Nethercote
96f009490c
Bug 1182961 (part 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
2015-07-26 20:15:36 -07:00
Nicholas Nethercote
9a1967b37c
Bug 1182961 (part 1) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
2015-07-28 21:14:39 -07:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Michal Novotny
97f80de102
Bug 1151812 - Add telemetry to find optimal cache entry hash size, r=honzab
2015-06-14 14:13:18 +02:00
Eric Rahm
b676a83446
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 12:52:44 -07:00
Wes Kocher
ce92b3fcd9
Backed out 2 changesets (bug 1162336) for breaking at least windows builds
...
Backed out changeset 8952a7fa4050 (bug 1162336)
Backed out changeset 0170a6c2a5be (bug 1162336)
2015-05-07 11:13:24 -07:00
Eric Rahm
bd957615ed
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:35:28 -07:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00