Tom Tung
96ad153131
Bug 1402581 - P1: Don't delete the body file and decrease the padding size when the transaction fails. r=bkelly
2017-10-03 18:36:44 +08:00
Ben Kelly
05f0a13264
Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
731fb43e27
Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
0433bb3c73
Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
4ea5fdca58
Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt
2017-09-15 12:25:40 -07:00
Ben Kelly
ae6c3e29a7
Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt
2017-09-15 12:25:40 -07:00
Sebastian Hengst
e53b398321
Backed out changeset 15edfaab92f6 (bug 1397128)
2017-09-15 18:28:54 +02:00
Sebastian Hengst
f3f1393bc1
Backed out changeset bfbcc07fcb4b (bug 1397128)
2017-09-15 18:28:48 +02:00
Sebastian Hengst
3a6107fab2
Backed out changeset 389e9f39d6b8 (bug 1397128)
2017-09-15 18:28:43 +02:00
Sebastian Hengst
69014e361f
Backed out changeset b28740aedf34 (bug 1397128)
2017-09-15 18:28:27 +02:00
Sebastian Hengst
3733e4268a
Backed out changeset e37614cb41e1 (bug 1397128)
2017-09-15 18:28:21 +02:00
Ben Kelly
ba5947abb0
Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt
2017-09-15 09:11:23 -07:00
Ben Kelly
1c24df65ec
Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt
2017-09-15 09:11:23 -07:00
Ben Kelly
23ca0c66ef
Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt
2017-09-15 09:11:22 -07:00
Ben Kelly
be4e5b9e52
Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt
2017-09-15 09:11:22 -07:00
Ben Kelly
b5e77d3c84
Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt
2017-09-15 09:11:22 -07:00
Tom Tung
15d5a42c6c
Bug 1290481 - P10: Update padding size to the direcotry padding file. r=bkelly
...
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 19:00:09 +08:00
Tom Tung
388e584d55
Bug 1290481 - P5: Implement a function to generate padding size. r=bkelly
...
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 17:03:24 +08:00
Tom Tung
a744bbce77
Bug 1290481 - P4: Update padding size to the QuotaManager. r=bkelly, janv
...
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 17:02:44 +08:00
Tom Tung
3e0688e8c5
Bug 1290481 - P3: Record padding size into cache.sqlite. r=bkelly
...
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 16:54:20 +08:00
Tom Tung
046fa872a8
Bug 1367309 - Part 1: Update usage to QuotaManager when a file is deleted in DOM Cache. r=bkelly, r=janv
...
This patch mainly to update DOM Cahce's usage to the QuotaManager when a file
is deleted. This patch implement two helper function to delete the nsIFile
recursively or directly and update usage to QuotaManager.
MozReview-Commit-ID: 7pZZ02pS48d
2017-05-23 18:33:47 +08: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
Bill McCloskey
284c3f3132
Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
...
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.
MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -07:00
Sylvestre Ledru
ef2b4e37ec
Bug 1368106 - Use the new MOZ_DIAGNOSTIC_ASSERT_ENABLED instead of several defines r=glandium
...
MozReview-Commit-ID: KOM35SQnoRh
2017-05-26 18:53:35 +02:00
Nathan Froyd
3b526b2200
Bug 1359490 - add an event loop spinning abstraction function; r=gerald
...
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Ben Kelly
5d692f5fd3
Bug 1331949 Make service worker and cache diagnostic assert code compile on beta. r=asuth
2017-01-19 08:11:41 -08:00
Ben Kelly
a7346ff365
Bug 1329669 Gracefully handle nullptr Cache actor in CacheStorage::Open() result. r=asuth
2017-01-10 08:20:15 -08:00
Ben Kelly
077c137d4a
Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth
2017-01-06 12:41:15 -08:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Kyle Huey
b972c94d0f
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
aadd508ffe
Backed out changeset 85ce8cb0639a (bug 1268313)
2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Bogdan Postelnicu
2fee871b42
Bug 1245868 - repalce pass by value with pass by pointer in IsHeadRequest. r=jst
...
MozReview-Commit-ID: 5eZ2XLmIjkk
2016-02-17 10:17:20 +02:00
Kyle Huey
20d0dc7286
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Jan Varga
c840a049f6
Bug 961049 - Part 6: Quota Manager on PBackground cache changes; r=bkelly
2015-11-22 10:44:16 +01:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +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
Ben Kelly
d6ff237942
Bug 1184607 P7.4 Infrastructure for running Cache schema migrations. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
67dd9a104d
Bug 1112071 Change Cache ManagerId to use QuotaManager's concept of origin. r=ehsan
2015-08-31 14:26:29 -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
Jan Varga
a1455f50a1
Bug 1130775 - Convert synchronized ops and storage registration into unified directory locks; r=bent
2015-06-30 14:59:27 +02:00
Ben Kelly
320eeedfed
Bug 1110446 P2 Cleanup stale caches/bodies if last session didn't shutdown cleanly. r=ehsan
2015-06-25 22:22:46 -07:00