Nikhil Marathe
4fad035dad
Bug 1167809 - Add skip size check flag to cache for use with ServiceWorkers. r=mayhemer
...
For non-e10s Service Worker, we use Cache entries to achieve interception.
While this is a temporary measure, the fact that cache enforces size limits on
cache entries (which make sense for the purpose it was designed) prevents large
files from being served via a Service Worker. This patch adds a skip size check
flag to CacheStorage that is relayed to CacheEntry and CacheFile. It is set to
false by default leading to normal cache behaviour.
The patch also adds nsICacheStorageService.synthesizedCacheStorage() that
retrieves a cache storage with this flag set to true, which is used by
nsHttpChannel in case of possible interception.
2015-09-03 16:05:42 -07:00
Honza Bambas
e977121dbd
Bug 1082735 - Don't use InsertElementSorted in HTTP cache, r=michal
2015-08-17 15:18:59 -07:00
Nicholas Nethercote
dd37a3b4b2
Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
2015-07-30 21:19:57 -07:00
Carsten "Tomcat" Book
ca308afdc0
Backed out changeset fb2a27db76bc (bug 1032254) for OS X Static Build Bustage on a CLOSED TREE
2015-07-31 07:57:50 +02:00
Valentin Gosu
e4fd4909fb
Bug 1032254 - Provide a way to pin resources in the http cache r=honzab
2015-07-30 11:40:00 +02:00
Nicholas Nethercote
37d91ed8fe
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -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
David Major
0d8488aa2c
Bug 1173860: Null check on sGlobalEntryTables. r=mcmanus
2015-06-17 11:23:43 -04:00
Honza Bambas
1dc83b6242
Bug 1170534 - Remove Visual Event Tracer. r=dougt
2015-06-02 11:44:00 -04:00
Eric Rahm
1d6101df90
Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
...
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 12:52:45 -07: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
86aef1067d
Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
...
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 10:35:29 -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
Honza Bambas
126dfa8bb3
Bug 1079789 - Don't doom expired entries in the HTTP cache intermediate memory pool. r=michal
...
CLOSED TREE
2015-02-12 14:00:00 -05:00
Ehsan Akhgari
7943855e34
Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus
2015-01-02 09:04:04 -05:00
Michal Novotny
27641eae48
Bug 1052266 - Potential deadlock detected: CacheEntry, CacheIndex.mLock, CacheStorageService at CacheEntry, r=honzab
2014-09-10 14:43:50 +02:00
Steve Workman
1e9f30d259
Bug 1058099 - Cancel CacheStorageService::mPurgeTimer if it's still set during shutdown r=mayhemer
2014-09-02 13:33:32 -07:00
Ehsan Akhgari
2ebcc369c6
Bug 1061052 - Fix more bad implicit constructors in netwerk; r=mcmanus
2014-09-02 09:49:38 -04:00
Michal Novotny
357ecb53d6
Bug 1042192 - Use Cache2 I/O thread for callbacks from CacheFileIOManager, r=sworkman
2014-08-18 15:36:27 +02:00
Valentin Gosu
e30e68a3cb
Bug 1045886 - Remove Cache directory from Android profiles r=michal
2014-08-13 16:43:45 +03:00
Ehsan Akhgari
cae4fa66a8
Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus
2014-08-05 09:20:24 -04:00
Jeremy Poulin
7dd5c39cf2
Bug 1038357 - Add automatic pruning for mForcedValidEntries in CacheStorage Service. r=honzab
2014-07-15 09:23:09 -07:00
Jeremy Poulin
89e74822a5
Bug 1020416 - Added forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, michal
2014-07-21 11:34:17 -07:00
Brad Lassey
7778c1c3ee
back out bug 1020416 for causing hangs on Firefox for Android
2014-07-25 13:21:42 -04:00
Jeremy Poulin
9a3b9a629b
Bug 1038357 - Added automatic pruning for mForcedValidEntries in CacheStorage Service. r=honzab
2014-07-15 09:23:09 -07:00
Jeremy Poulin
9c02d58a3f
Bug 1020416 - Added forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, michal
2014-07-21 11:34:17 -07:00
Carsten "Tomcat" Book
2ab1dc9d69
Backed out changeset a232fd36c827 (bug 1020416) for nightly startup crashed - bug 1041492 a=sheriffduty
2014-07-21 14:57:09 +02:00
Jeremy Poulin
129e9e1348
Bug 1020416 - Add forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, r=michal
2014-07-18 18:11:34 -07:00
Honza Bambas
ac61a38de7
Bug 920606 - HTTP cache v2: add telemetry for the intermediate memory cache purging, r=michal
2014-07-08 16:48:00 +02:00
Honza Bambas
66a31a5087
Bug 1025913 - Let memory-only HTTP cache entries doom disk entries, CacheEntry.mUseDisk immutable, r=michal
2014-06-25 18:42:50 +02:00
Benoit Jacob
d66ff6a02f
Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus
2014-06-24 12:36:44 -04:00
Honza Bambas
b50763060f
Bug 1023413 - Introduce bool nsICacheStorage.exists(nsIURI, ACString), r=michal
2014-06-24 18:08:35 +02:00
Carsten "Tomcat" Book
7531adbd49
Backed out changeset f2c5626b3cec (bug 1023413) for causing Android 2.2 Armv6 Opt XPCShell Test failures on a CLOSED TREE
2014-06-23 13:06:30 +02:00
Honza Bambas
3a6c3ca8e5
Bug 1023413 - Introduce bool nsICacheStorage.exists(nsIURI, ACString), r=michal
2014-06-21 21:41:02 +02:00
Nicholas Nethercote
7b107d5931
Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
2014-05-20 23:06:54 -07:00
Honza Bambas
773de946ec
Bug 961024 - Move HTTP cache on Android to application's cache/profile leaf name, r=michal
2014-06-03 14:35:17 +02:00
Honza Bambas
e3b80d0a3d
Bug 1017546 - Move CacheStorageService::CleaupCacheDirectories job to background, r=michal
2014-06-03 14:35:17 +02:00
Honza Bambas
bd89a739b5
Bug 1014394 - Correctly delete all HTTP cache leftover trashes, r=michal
2014-05-29 00:52:21 +02:00
Honza Bambas
b23a91388d
Bug 1011487 - HTTP cache v2: WalkCacheRunnable may release it's callback on a non-main thread, r=michal
2014-05-17 15:38:50 +02:00
Ryan VanderMeulen
be6ccfea53
Revert to revision 63dfac3c9c87 due to mass bustage pile-ups that landed after it on a CLOSED TREE.
2014-05-16 12:29:37 -04:00
Honza Bambas
80bc77c6da
Bug 1011487 - HTTP cache v2: WalkCacheRunnable may release it's callback on a non-main thread, r=michal
2014-05-16 17:13:04 +02:00
Honza Bambas
ac742d35b0
Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN
2014-05-01 13:28:12 +02:00
Honza Bambas
363e4d697a
Backing out bug 916052 (2557b51a47a0) for build bustage on linux/osx, r=bustage on CLOSED TREE
2014-04-30 13:05:43 +02:00
Honza Bambas
a3fb819588
Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN
2014-04-30 12:39:18 +02:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Honza Bambas
57235d0ae6
Bug 998445 - Unable to see disk cache size, 'Calculating web content cache size' stays forever, r=michal
2014-04-24 18:50:46 +02:00
Honza Bambas
5e138728cc
Bug 992974 - Improve logs at CacheStorageService::AddStorageEntry, r=michal
2014-04-24 18:50:45 +02:00
Michal Novotny
259c3d334a
Bug 977766 - HTTP cache v2: selective deletion of data (by load context info), r=honzab, michal
2014-04-10 12:47:20 +02:00