Commit Graph
57 Commits
Author SHA1 Message Date
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
Ben Kelly 126cd3b0d4 Bug 1110446 P1 Create marker files when Cache API context is open. r=ehsan 2015-06-25 22:22:46 -07:00
Ben Kelly ea12199f12 Bug 1134671 Keep sqlite connection open between Cache API operations. r=ehsan 2015-05-07 05:16:51 -07:00
Ben Kelly c41514ae25 Bug 1160227 Improve Cache API warnings. r=ehsan 2015-05-01 08:15:52 -07:00
Ben Kelly 1e4ce069d9 Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
Timur Valeev 440c74fe7a Bug 1150001 - Cache API should not return Response body when matching Request with HEAD method. r=bkelly 2015-04-23 16:17:37 +03:00
Ben Kelly a81e24fac6 Bug 1151974 P1 Delay Cache Context start until previous Context has completed. r=ehsan 2015-04-20 11:14:57 -07:00
Ben Kelly d7f43e1bbc Bug 1151892 Refactor Cache Manager Context usage to be more sane and fix shutdown assert. r=ehsan 2015-04-16 13:05:38 -07:00
Ben Kelly 0c3ecc763a Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan 2015-04-16 12:00:16 -07:00
Ben Kelly a00a29b5b2 Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-16 12:00:16 -07:00
Ben Kelly 581b87a39b Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan 2015-04-16 12:00:16 -07:00
Ben Kelly 3eda7b0ad0 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
Ben Kelly 8160ae8ba1 Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-16 12:00:15 -07:00
Carsten "Tomcat" Book d7a1b4397a Backed out changeset 19f871364039 (bug 1110485) for causing bc1 winxp memory leaks on a CLOSED TREE 2015-04-15 09:55:53 +02:00
Carsten "Tomcat" Book 4fe7ad9602 Backed out changeset a74f0b2545ab (bug 1110485) 2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book a0faffc2d4 Backed out changeset de417ee861be (bug 1110485) 2015-04-15 09:54:36 +02:00
Carsten "Tomcat" Book 324495e45f Backed out changeset fdca92fa4d55 (bug 1110485) 2015-04-15 09:54:34 +02:00
Carsten "Tomcat" Book 6edc845d59 Backed out changeset e8de5745c5c3 (bug 1110485) 2015-04-15 09:54:27 +02:00
Carsten "Tomcat" Book b6b01a14e8 Backed out changeset a2629286ed4c (bug 1151892) 2015-04-15 09:54:11 +02:00
Ben Kelly 3d526926ee Bug 1151892 Refactor Cache Manager Context usage to be more sane and fix shutdown assert. r=ehsan 2015-04-14 17:15:12 -07:00
Ben Kelly 96cffe9b41 Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan 2015-04-14 17:11:20 -07:00
Ben Kelly 9124f5aa63 Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-14 17:11:19 -07:00
Ben Kelly 16e8411904 Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan 2015-04-14 17:11:19 -07:00
Ben Kelly 276f4fe9b5 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-14 17:11:19 -07:00
Ben Kelly 8ed1bcafef Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-14 17:11:19 -07:00
Wes Kocher 72537741dc Backed out changeset 40f48cd100a2 (bug 1110485) for frequent mochitest-1 failures CLOSED TREE 2015-04-14 15:27:48 -07:00
Wes Kocher 0b492b45ca Backed out changeset 114377b11793 (bug 1110485) 2015-04-14 15:27:46 -07:00
Wes Kocher 1936b2c264 Backed out changeset 55723c780549 (bug 1110485) 2015-04-14 15:27:40 -07:00
Wes Kocher 011ccebc90 Backed out changeset 974c5c109a49 (bug 1110485) 2015-04-14 15:27:39 -07:00
Wes Kocher b05b404753 Backed out changeset b6b9517e3d50 (bug 1110485) 2015-04-14 15:27:37 -07:00
Ben Kelly 9b3b586d02 Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan 2015-04-14 12:21:14 -07:00
Ben Kelly dd87d9de72 Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-14 12:21:14 -07:00
Ben Kelly 172107353e Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan 2015-04-14 12:21:14 -07:00
Ben Kelly 87c4610793 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-14 12:21:14 -07:00
Ben Kelly 9200cbf287 Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-14 12:21:14 -07:00
Wes Kocher 9681a7a9f0 Backed out 3 changesets (bug 1110485) for wpt-3 bustage
Backed out changeset e8bd3bf404ff (bug 1110485)
Backed out changeset fa29dbb49a66 (bug 1110485)
Backed out changeset 12deb121d126 (bug 1110485)
2015-04-13 15:18:19 -07:00
Ben Kelly 8272fa9b9b Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-13 14:05:57 -07:00
Ben Kelly 5ae5d347d6 Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-13 14:05:57 -07:00
Ben Kelly 4781a78308 Bug 1150691 Fix Cache API race with storage invalidation. r=ehsan 2015-04-02 17:39:46 -07:00
Ben Kelly a2b4c2dbb7 Bug 1150608 Do not reuse CacheId values within an origin. r=ehsan 2015-04-02 17:11:41 -07:00
Ben Kelly 1bcbbe93f6 Bug 1142852 P2 Make Cache Action use non-threadsafe ref-counting. r=ehsan 2015-03-23 22:28:09 -04:00
Ben Kelly 44a3980c9e Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -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