Граф коммитов

50 Коммитов

Автор SHA1 Сообщение Дата
Junior Hsu 6d4fca1d99 Bug 1325088 - Part 2: Expose the index-update to cache entry. r=michal
--HG--
extra : rebase_source : 8c8eaf6cea7eb3491de4cdf9dbe9783491296130
2017-03-28 12:02:45 +08:00
Junior Hsu 8fc810c5c9 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
Valentin Gosu 3c75088cde Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal
MozReview-Commit-ID: C6kMSPw8gxv
* * *
[mq]: bug1313095-telemetry-reval.patch

MozReview-Commit-ID: 8jwMgq0cx3Z
2016-11-10 16:14:34 +01:00
Valentin Gosu 29eff7dfe4 Bug 1231565 - (Part 3) Make alt-data responses report the correct content length r=michal
MozReview-Commit-ID: DvQP7NB4SqW
2016-09-27 10:26:00 +02:00
Michal Novotny 46b5c2fb6e Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
Andrew McCreight afa9136306 Bug 1287602 - CacheFile::GetChunk() is unused. r=michal 2016-07-20 15:18:59 -07:00
Honza Bambas f6e228e9d3 Bug 1247644 - Don't do any I/O on doomed and unused HTTP cache entries, r=michal 2016-02-12 14:45:00 +01:00
Nicholas Nethercote 59bbf6548a Bug 1187134 (part 5) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : d47d5a91025ce6a06ec63155d68b0969c45e4d29
2015-12-03 14:00:04 -08:00
Nicholas Nethercote edfdcd39d9 Bug 1187134 (part 4) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : 0d62ad6d5e6cad0d4202cb58ec77890e3213cecf
2015-12-03 14:00:03 -08:00
Nicholas Nethercote 2e1080a108 Bug 1187134 (part 3) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : c7de2d58545b298f362a042788531fe9e13fc52a
2015-12-03 14:00:02 -08:00
Honza Bambas 8f88fd6cdc Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal
* * *
Bug NNNNNNN - message, r=reviewer

--HG--
rename : netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js
rename : netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js
2015-10-22 12:11:00 +02:00
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nikhil Marathe 8dbf443150 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
Carsten "Tomcat" Book 9fcb673926 Backed out changeset fb2a27db76bc (bug 1032254) for OS X Static Build Bustage on a CLOSED TREE
--HG--
rename : netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js
rename : netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js
2015-07-31 07:57:50 +02:00
Valentin Gosu 30be843b5b Bug 1032254 - Provide a way to pin resources in the http cache r=honzab
--HG--
rename : netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js
rename : netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js
2015-07-30 11:40:00 +02:00
Birunthan Mohanathas a8939590de 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
Trevor Saunders d5851ef31c bug 1146027 - more final r=froydnj 2015-03-24 17:51:43 -04:00
Ehsan Akhgari 883849ee32 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
Jeff Muizelaar 3f0fdb039e Bug 1114999 - Part 3: Use automatic memory management for mObjsToRelease; r=novotny 2015-01-15 18:19:26 -05:00
Ehsan Akhgari e9499ce141 Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus 2015-01-02 09:04:04 -05:00
Honza Bambas 1c22ca20d6 Bug 1000338 - nsICacheEntry.lastModified not properly implemented, r=michal 2014-09-16 15:51:50 +02:00
Carsten "Tomcat" Book f61f2f49c9 Backed out changeset ce8f00cca9dd (bug 1000338) for XPC-2 test failures 2014-09-11 14:31:54 +02:00
Honza Bambas e73517351a Bug 1000338 - nsICacheEntry.lastModified not properly implemented, r=michal 2014-09-11 11:44:31 +02:00
Ehsan Akhgari 748c8aca19 Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
Michal Novotny 4141a9c05a Bug 1013395 - HTTP cache v2: have a limit for write backlog, r=honzab 2014-07-10 07:59:29 +02:00
Michal Novotny 8530936fe0 Bug 1011771 - fix for crash in CacheFile::RemoveChunk() and CacheFile::Unlock(), r=honzab 2014-05-28 16:16:03 +02:00
Michal Novotny 2266d17f80 Bug 1007071 - Check cache entry size in CacheFileOutputStream::Write(), r=honzab 2014-05-19 14:21:18 +02:00
Michal Novotny 281e13e756 Bug 1010783 - Base CacheFileInputStream::Read on ReadSegments, r=honzab 2014-05-18 09:31:38 +02:00
Honza Bambas 1b6004c6f1 Bug 1010221 - Let CacheFileInputStream::ReadSegments loop over all preloaded chunks, r=michal 2014-05-15 19:24:55 +02:00
Michal Novotny 9a6e8306aa 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 ec884e84a0 Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN 2014-05-01 13:28:12 +02:00
Honza Bambas fcfec4dbfa 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 bbabececf4 Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN 2014-04-30 12:39:18 +02:00
Michal Novotny 661f620203 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 b4dd4d8955 Bug 986179 - Rework cache2 memory pool, r=michal 2014-04-06 20:45:18 +02:00
Honza Bambas a2b286f768 Bug 964039 - Memory used by the new cache backend is not reported, r=michal 2014-02-27 00:11:40 +01:00
Michal Novotny 8c254f8b27 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 d2d590bfc8 Bug 923016 - Implementation of cache index, r=honzab 2014-02-18 16:05:07 +01:00
Ed Morley 6088e9379c Backed out changeset f514ab5c4b5b (bug 923016) for B2G xpcshell crashes; CLOSED TREE 2014-03-05 17:25:27 +00:00
Ed Morley d324b8dded Backed out changeset d8543551f12e (bug 913808) 2014-03-05 17:25:04 +00:00
Ed Morley 8dbef9c6e0 Backed out changeset 240333c3d2c1 (bug 964039) 2014-03-05 17:24:55 +00:00
Michal Novotny dc96947b54 Bug 976922 - heap-use-after-free mozilla::net::CacheEntry::GetMetaDataElement in NS_strdup, r=honzab 2014-03-05 18:14:19 +01:00
Honza Bambas 260271bf43 Bug 964039 - Memory used by the new cache backend is not reported, r=michal 2014-02-27 00:11:40 +01:00
Michal Novotny 41ee219b6e 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 a5234f73a3 Bug 923016 - Implementation of cache index, r=honzab 2014-02-18 16:05:07 +01:00
Honza Bambas 6b4428ffb1 Bug 949250 - Improve CacheFileMetadata write timer, remove non-thread safe nsWeakRef, r=michal 2014-01-06 21:27:18 +01:00
Honza Bambas 1a0be10718 Bug 924116 - HTTP cache v2: persists frecency and experiment with half-life, r=michal 2014-01-09 00:27:33 +01:00
Honza Bambas e819212e97 Bug 914644 - HTTP cache v2: failure of test_doomentry.js, proper sync when dooming after open, r=michal 2014-01-09 00:27:32 +01:00
Honza Bambas 2437751f1d Bug 922741 - make callbacks iteration in CacheEntry smarter, r=michal 2013-11-20 23:20:17 +01:00
Michal Novotny f3cf185b1e Bug 913807 - HTTP cache v2: file I/O, off by default, r=honzab 2013-09-20 11:11:26 +02:00