J. Ryan Stinnett
2a55d065b7
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
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
Honza Bambas
e3cd93ce31
Bug 1239687 - Leak invalid/doomed file handles immediately after HTTP cache shutdown. r=michal
...
--HG--
extra : rebase_source : fbf0ddf9489b83e60bbfe09f19d9dd2ffdc16629
2016-01-14 08:14:00 +01:00
Honza Bambas
6e283f1e37
Bug 913822 - Shutdown I/O time limit for HTTP cache. r=michal
2016-01-13 16:11:00 -05:00
Nathan Froyd
ce11c393a5
Bug 1223808 - part 2 - use UniquePtr<uint8_t[]> instead of nsAutoArrayPtr<SHA1Sum::Hash> in HandleHashKey; r=michal
2015-11-18 15:56:47 -05: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
Nathan Froyd
8a9abcdd4d
Bug 1156974 - mark CacheFileHandle::mIsDoomed as a release/acquire Atomic variable; r=michal
2015-08-04 00:32:36 -04: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
Neil Rashbrook
cf42e317ab
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-16 09:07:10 +01:00
Wes Kocher
3c714c42eb
Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds
2015-05-14 16:35:18 -07:00
Neil Rashbrook
ae441fafa2
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-15 00:00:33 +01:00
Andrea Marchesini
cb54385682
Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan
2015-04-22 08:29:20 +02:00
Michal Novotny
ccf95c783e
Bug 1141555 - HTTP cache v2 generates corrupted entries, r=jduell
2015-03-26 23:05:34 +01:00
Michal Novotny
59b700c5ee
Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(). r=honzab
...
CLOSED TREE DONTBUILD
2015-02-24 11:49:46 -05:00
Ryan VanderMeulen
e6f89f97b9
Backed out changeset 12b059c5afc2 (bug 1055369) for frequent asserts across all test suites.
2015-02-24 11:40:22 -05:00
Michal Novotny
433ecb9f7d
Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(), r=honzab
2015-02-24 16:09:17 +01:00
Michal Novotny
fc093f7b96
Bug 1042192 - Use Cache2 I/O thread for callbacks from CacheFileIOManager, r=sworkman
2014-08-18 15:36:27 +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
9e398090b9
Bug 1028415 - Cache thread gets stuck in CacheFileIOManager::OverLimitEvictionInternal loop, r=honzab
2014-07-16 10:47:02 +02:00
Michal Novotny
a832d97bc8
Bug 979900 - Avoid completely filling cache partition on Gonk, r=honzab
2014-07-11 08:25:55 +02:00
Nicholas Nethercote
2a0942be41
Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger.
...
--HG--
extra : rebase_source : 668cd394806203ddfa34bd4f226335ff26c846b5
2014-07-10 19:10:17 -07:00
Honza Bambas
8f57c8e341
Bug 961024 - Move HTTP cache on Android to application's cache/profile leaf name, r=michal
2014-06-03 14:35:17 +02:00
Michal Novotny
919d02722d
Bug 1003208 - HTTP cache v2: CacheFileHandle::mHash is accessed after the memory is freed, r=honzab
2014-05-05 15:11:39 +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
Honza Bambas
5418308b9c
Bug 999383 - optimize Open and Read inter-thread calls in CacheFileIOManager, r=michal
2014-04-26 18:42:07 +02:00
Michal Novotny
161817ef1f
Bug 987829 - HTTP cache v2: make disk cache smart sizing work with the new backend, r=honzab
2014-04-22 11:21:00 +02:00
Michal Novotny
993f02b514
Bug 977766 - HTTP cache v2: selective deletion of data (by load context info), r=honzab, michal
2014-04-10 12:47:20 +02:00
Michal Novotny
7f7612b2d2
Bug 920573 - HTTP cache v2: Remove all cache files during shutdown when "Clear history when Firefox closes" + "Cache" setting is checked, r=honzab
2014-04-09 10:06:59 +02:00
Michal Novotny
b197bab7f7
Bug 983582 - HTTP cache v2: special handles are not released until shutdown, r=honzab
2014-03-28 12:35:06 +01:00
Michal Novotny
63c7dcaab1
Bug 968106 - HTTP cache v2: implementation of the eviction of the whole disk cache, r=honzab
2014-03-07 12:22:59 +01: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
811f3e58f6
Bug 968101 - Remove directories with low priority on background, r=honzab
2014-02-19 13:04:06 +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
fa2daad1c0
Backed out changeset a43ae8497706 (bug 968101)
2014-03-05 17:25:01 +00:00
Ed Morley
8dbef9c6e0
Backed out changeset 240333c3d2c1 (bug 964039)
2014-03-05 17:24:55 +00: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
227299b5aa
Bug 968101 - Remove directories with low priority on background, r=honzab
2014-02-19 13:04:06 +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
c5f606dd7b
Bug 964898 - Auto delete unused cache version data on demand, r=jduell
2014-02-05 20:29:54 +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
751662293a
Bug 945945 - Improve CacheFileHandle management to prevent crashes, r=michal
2014-01-22 18:54:52 +01:00