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
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
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
Michal Novotny
743773e29f
Bug 1119406 - HTTP cache v2: Doom cache entry when writing of metadata fails, r=honzab
2015-01-27 15:50:18 +01:00
Jeff Muizelaar
09ddc12142
Bug 1114999 - Part 3: Use automatic memory management for mObjsToRelease; r=novotny
2015-01-15 18:19:26 -05:00
Valentin Gosu
35c1125f6f
Bug 1119240 - Fix warning in CacheFile::PadChunkWithZeroes r=michal
2015-01-09 16:36:54 +02: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
Honza Bambas
f0c2d094c7
Bug 1066726 - Concurrent HTTP cache read and write issues, r=michal+jduell
2014-09-16 15:51:50 +02:00
Honza Bambas
df41234f0b
Bug 1000338 - nsICacheEntry.lastModified not properly implemented, r=michal
2014-09-16 15:51:50 +02:00
Carsten "Tomcat" Book
4c057310ba
Backed out changeset ce8f00cca9dd (bug 1000338) for XPC-2 test failures
2014-09-11 14:31:54 +02:00
Honza Bambas
654e1d3308
Bug 1000338 - nsICacheEntry.lastModified not properly implemented, r=michal
2014-09-11 11:44:31 +02: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
Ehsan Akhgari
cae4fa66a8
Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus
2014-08-05 09:20:24 -04:00
Benoit Girard
28eb7316ee
Bug 1037691 - Fix instances where refcounted classes expose a public destructor. r=ehsan,bent,mayhemer,jrmuizel
2014-07-15 11:37:45 -04:00
Michal Novotny
805d7068eb
Bug 1013395 - HTTP cache v2: have a limit for write backlog, r=honzab
2014-07-10 07:59:29 +02:00
Honza Bambas
8c2e00354d
Bug 967310 - optimize call to CacheFileIOManager::UnscheduleMetadataWrite, r=michal
2014-06-23 17:48:52 +02:00
Carsten "Tomcat" Book
fba80bcc9f
Backed out changeset d1c1aec94228 (bug 967310) for causing Android 2.2 Armv6 Opt XPCShell Test failures on a CLOSED TREE
2014-06-23 13:07:09 +02:00
Honza Bambas
7efed3f8e6
Bug 967310 - optimize call to CacheFileIOManager::UnscheduleMetadataWrite, r=michal
2014-06-21 21:41:01 +02:00
Michal Novotny
030012b19f
Bug 1011771 - fix for crash in CacheFile::RemoveChunk() and CacheFile::Unlock(), r=honzab
2014-05-28 16:16:03 +02:00
Michal Novotny
188fe2e51a
Bug 1013333 - HTTP cache v2: do not allow preloading of chunks without input streams once the output stream is opened, r=honzab
2014-05-21 23:42:09 +02:00
Michal Novotny
005cc67a1f
Bug 1007071 - Check cache entry size in CacheFileOutputStream::Write(), r=honzab
2014-05-19 14:21:18 +02:00
Honza Bambas
7814b09f38
Bug 1012331 - Let CacheFile::PreloadChunks use mPreloadChunkCount instead of prefs, r=michal
2014-05-18 20:03:57 +02:00
Michal Novotny
23213e6328
Bug 1010783 - Base CacheFileInputStream::Read on ReadSegments, r=honzab
2014-05-18 09:31:38 +02:00
Honza Bambas
d8b59a3ef3
Bug 1010221 - Let CacheFileInputStream::ReadSegments loop over all preloaded chunks, r=michal
2014-05-15 19:24:55 +02:00
Honza Bambas
9e23ba2adb
Bug 1010153 - CacheFileIOManager::ScheduleMetadataWrite called for memory only CacheFiles, r=michal
2014-05-14 23:12:39 +02:00
Honza Bambas
936d37ec73
Bug 1006181 - HTTP cache v2 memory only storage area not freed on limit, fix purge condition, r=michal
2014-05-14 23:12:38 +02:00
Honza Bambas
3a70f373ff
Bug 1005475 - Remove lock acquire from CacheEntry::IsFileDoomed() and bellow, r=michal
2014-05-05 19:25:59 +02:00
Honza Bambas
262bd41932
Bug 1005079 - Move index check from CacheFile to CacheEntry to speed up, r=michal
2014-05-05 19:25:58 +02:00
Michal Novotny
923ff3c27e
Bug 913819 - HTTP cache v2: preload several chunks in advance in input stream to speed up reading, r=honzab
2014-05-02 20:15:14 +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
fb2a24ac11
Bug 999383 - optimize Open and Read inter-thread calls in CacheFileIOManager, r=michal
2014-04-26 18:42:07 +02:00
Michal Novotny
8a82e0e11a
Bug 913812 - HTTP cache v2: properly propagate errors through the cache file code, r=honzab
2014-04-22 13:23:17 +02:00
Honza Bambas
17c4e94872
Bug 986179 - Rework cache2 memory pool, r=michal
2014-04-06 20:45:18 +02:00
Honza Bambas
f8d7db713e
Bug 985156 - CacheFile doesn't report mKey during memory report, r=michal
2014-04-04 14:42:06 +02:00
Kyle Huey
ea94e7d568
Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg
2014-03-15 12:00:15 -07:00
Honza Bambas
3d5cd4451d
Bug 964039 - Memory used by the new cache backend is not reported, r=michal
2014-02-27 00:11:40 +01:00
Michal Novotny
094b973f9b
Bug 913808 - Evict entries from the disk cache when cache limit is reached, r=honzab
2014-02-18 18:26:48 +01:00
Michal Novotny
eb5de807b5
Bug 923016 - Implementation of cache index, r=honzab
2014-02-18 16:05:07 +01:00
Michal Novotny
b4302160f6
Bug 976147 - Prevent throwing cached chunks when CacheFile is memory-only, r=honzab
2014-03-11 11:01:08 +01:00
Ed Morley
255b21ca61
Backed out changeset f514ab5c4b5b (bug 923016) for B2G xpcshell crashes; CLOSED TREE
2014-03-05 17:25:27 +00:00