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

36 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jan Varga 7981be440b Bug 1286798 - Part 25: Add checks for the group and global limit; r=asuth 2018-11-29 21:48:34 +01:00
Jan Varga 60713ff421 Bug 1361330 - Part 1: Make quota stream constructors public and move the Create() helpers outside of the stream classes; r=asuth 2018-08-20 14:32:33 +02:00
Kris Maglione 6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Tom Tung 89da9c7d42 Bug 1422815 - P1: Fix for failing to get quotaObject unexpectedly. r=bkelly
This patch is for avoiding use quotaObject while it does not exist in Release.
Note that we sill catch this in Beta and Nightly by the assertion.

--HG--
extra : rebase_source : cae8b7816adfa91fdc1e5abae6dc92c506b1719c
2017-12-06 10:12:24 +08:00
Jonathan Watt 5ea9cced68 Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
Andrea Marchesini 6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Kris Maglione 3876d40960 Bug 1404198: Part 1 - Add non-virtual constructor for nsIObject(Input|Output)Stream and update existing callers. r=njn
MozReview-Commit-ID: 3eoh6AwDJyz

--HG--
extra : rebase_source : 92b18b6ef07d276cac79ce735ca0b592cffbf87e
2017-10-04 20:06:28 -07:00
Tom Tung 82eb515a1a Bug 1402581 - P4: Make the assertions for increaing and decreaing padding size be runtime checks. r=bkelly
--HG--
extra : rebase_source : c5c2dd26334ed05c8143341ddfd47b85f0a0c9ef
2017-10-06 15:18:06 +08:00
Tom Tung 45c9e8c00b Bug 1402581 - P3: Allow failures happen when restoring or wiping padding file. r=bkelly
--HG--
extra : rebase_source : 6582320e3c942c37a8b031e16569a4900871f458
2017-10-05 17:30:40 +08:00
Tom Tung 753c5b5960 Bug 1402581 - P2: Ensure the temporary file exists when failure happens. r=bkelly
There are three changes in this patch: 1. Make sure deleting padding file before
the temporary padding file. 2. Not deleting temporary file when failure happens.
3. Endure failure happens after the transaction commit.

--HG--
extra : rebase_source : d6de5cc63c7cb9bb073e00a61237440bb65fd011
2017-10-03 18:44:56 +08:00
Tom Tung d56be4c5f0 Bug 1398231 - P1: Make file exist check before assertion. r=bkelly
MozReview-Commit-ID: 8t7P97Ttrv1

--HG--
extra : rebase_source : 2d44a42da181612af36f129f692bd4961caf2824
2017-09-09 09:30:05 +08:00
Tom Tung d064e1463f Bug 1290481 - P10: Update padding size to the direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 250d8cf6dd6804e8e944982d400a8de79539f7ac
2017-07-18 19:00:09 +08:00
Tom Tung 67d7727ec0 Bug 1290481 - P9: Implement a function to get overall padding size for an origin from cache.sqlite. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : a6956325cfdf6f11a4bcf66d41b8d4706ae4e1e7
2017-07-18 18:58:56 +08:00
Tom Tung 8eb68da410 Bug 1290481 - P8: Implement few utility functions to access direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 23145f66eb62f2f858311513f6bec4ead01d18cd
2017-07-18 18:57:54 +08:00
Tom Tung a1e22fa9e7 Bug 1290481 - P5: Implement a function to generate padding size. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc

--HG--
extra : rebase_source : 982139c536c17a6699d700df7c8b3071939bb3c0
2017-07-10 17:03:24 +08:00
Tom Tung 29522efbef Bug 1290481 - P4: Update padding size to the QuotaManager. r=bkelly, janv
MozReview-Commit-ID: 6poDeyErBjc

--HG--
extra : rebase_source : c7f556ad5c4516c0509a998c16c086795e5fa4b2
2017-07-10 17:02:44 +08:00
Tom Tung 8206d1d428 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

--HG--
extra : rebase_source : c33e4afdbc1512f117d5f47814e149736c7ca257
2017-05-23 18:33:47 +08:00
Ben Kelly 180d53d0e9 Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth 2017-01-06 12:41:15 -08:00
Kan-Ru Chen b6d880aca1 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


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +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
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
Dragana Damjanovic 7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen 7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Ben Kelly 704bdbfb99 Bug 1110446 P2 Cleanup stale caches/bodies if last session didn't shutdown cleanly. r=ehsan 2015-06-25 22:22:46 -07:00
Ben Kelly bbd2a20e5d Bug 1110446 P1 Create marker files when Cache API context is open. r=ehsan 2015-06-25 22:22:46 -07:00
Ben Kelly 0c43991ad9 Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-16 12:00:16 -07:00
Carsten "Tomcat" Book 7f9511a7e1 Backed out changeset fdca92fa4d55 (bug 1110485) 2015-04-15 09:54:34 +02:00
Carsten "Tomcat" Book 8f0d2c344a Backed out changeset 2bf98851529e (bug 1110485) 2015-04-15 09:54:19 +02:00
Ben Kelly 2fa42acf5e Bug 1110485 P8 Temporarilly disable an assert in Cache FileUtils.cpp. Follow up to fix in bug 1154531. r=me 2015-04-14 17:11:20 -07:00
Ben Kelly a9c2903eaf Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-14 17:11:19 -07:00
Wes Kocher 12f5d82830 Backed out changeset 974c5c109a49 (bug 1110485) 2015-04-14 15:27:39 -07:00
Ben Kelly 97225cf18a Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-14 12:21:14 -07:00
Ehsan Akhgari d5840b488d Bug 1133763 - Part 3: Wipe out the cache directory when detecting a change in the DB schema; r=bkelly 2015-03-13 14:37:18 -04:00
Ben Kelly f9064fc636 Bug 940273 - Part 4 - Initial implementation of Service Worker Cache. r=ehsan,baku,janv 2015-03-02 14:20:00 +01:00