gecko-dev/dom/indexedDB
Kris Maglione 0bfdb4329f Bug 1473631: Part 0a - Make preference callbacks typesafe. r=njn
I initially tried to avoid this, but decided it was necessary given the number
of times I had to repeat the same pattern of casting a variable to void*, and
then casting it back in a part of code far distant from the original type.

This changes our preference callback registration functions to match the type
of the callback's closure argument to the actual type of the closure pointer
passed, and then casting it to the type of our generic callback function. This
ensures that the callback function always gets an argument of the type it's
actually expecting without adding any additional runtime memory or
QueryInterface overhead for tracking it.

MozReview-Commit-ID: 9tLKBe10ddP

--HG--
extra : rebase_source : 7524fa8dcd5585f5a31fdeb37d95714f1bb94922
2018-07-06 12:24:41 -07:00
..
crashtests
test Bug 1456762 - Remove now unnecessary import-globals-from statements in html files. r=mossop 2018-06-16 08:21:33 +00:00
ActorsChild.cpp Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-02 01:03:45 +03:00
ActorsChild.h Bug 1410420 - Clear database actor's strong reference to IDBDatabase when opening of a database fails; r=asuth 2017-10-30 07:13:40 +01:00
ActorsParent.cpp Bug 1473217 - Part 2: dom: Fix misc-unused-raii warnings. r=baku 2018-07-03 22:09:54 -07:00
ActorsParent.h
FileInfo.cpp Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan 2018-03-16 14:29:15 +01:00
FileInfo.h Bug 1422335 - Using a sandbox on main-thread when deserializing data for IDB - part 1 - Deserialize on main-thread using a sandbox, r=asuth 2018-01-18 13:19:06 +01:00
FileManager.h
FileSnapshot.cpp Bug 1451731 - Synchronize access to various stream classes' async wait callback reference - part 5 - FileSnapshot StreamWrapper, r=mayhemer 2018-04-10 17:33:09 +02:00
FileSnapshot.h Bug 1469126 - GetAllocationSize should report unique blobs when dealing with nested blobs, r=smaug 2018-06-18 11:35:46 -04:00
IDBCursor.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBCursor.h
IDBDatabase.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBDatabase.h Bug 1429903 part 3. Remove C++ uses of nsIDOMEventTarget. r=mccr8 2018-04-20 00:49:30 -04:00
IDBEvents.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBEvents.h Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug 2018-04-05 13:42:41 -04:00
IDBFactory.cpp Bug 1468752 part 4 - Remove JS_GetGlobalForObject. r=bz 2018-07-06 12:54:00 +02:00
IDBFactory.h Bug 1451913 P10 Make the inner window explicitly disconnect the IDBFactory. r=baku 2018-04-16 06:08:53 -07:00
IDBFileHandle.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBFileHandle.h Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug 2018-04-05 13:42:41 -04:00
IDBFileRequest.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBFileRequest.h Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug 2018-04-05 13:42:41 -04:00
IDBIndex.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBIndex.h
IDBKeyRange.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBKeyRange.h Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
IDBMutableFile.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBMutableFile.h
IDBObjectStore.cpp Bug 1474273 - Add xpc::CurrentNativeGlobal and use it instead of NativeGlobal(JS::CurrentGlobalOrNull(cx)). r=bz 2018-07-11 14:07:02 +02:00
IDBObjectStore.h Bug 1422335 - Using a sandbox on main-thread when deserializing data for IDB - part 2 - Upgrade value, r=asuth 2018-01-18 13:19:07 +01:00
IDBRequest.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBRequest.h Bug 1429903 part 3. Remove C++ uses of nsIDOMEventTarget. r=mccr8 2018-04-20 00:49:30 -04:00
IDBTransaction.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
IDBTransaction.h Bug 1455256 - Port more components to WorkerRef - part 4 - IDB Transaction, r=asuth 2018-06-18 16:37:21 -04:00
IDBWrapperCache.cpp
IDBWrapperCache.h
IndexedDatabase.h Bug 1442722 - Move scope into JSStructuredData, r=baku,jorendorff 2018-04-03 11:17:33 -07:00
IndexedDatabaseInlines.h Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
IndexedDatabaseManager.cpp Bug 1473631: Part 0a - Make preference callbacks typesafe. r=njn 2018-07-06 12:24:41 -07:00
IndexedDatabaseManager.h
Key.cpp Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj 2018-06-17 22:43:11 -07:00
Key.h
KeyPath.cpp Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj 2018-06-17 22:43:11 -07:00
KeyPath.h
PBackgroundIDBCursor.ipdl
PBackgroundIDBDatabase.ipdl
PBackgroundIDBDatabaseFile.ipdl
PBackgroundIDBDatabaseRequest.ipdl
PBackgroundIDBFactory.ipdl Bug 1410106 - Better check about privateBrowsing for IDB, r=asuth 2017-11-08 06:43:50 +01:00
PBackgroundIDBFactoryRequest.ipdl
PBackgroundIDBRequest.ipdl
PBackgroundIDBSharedTypes.ipdlh
PBackgroundIDBTransaction.ipdl
PBackgroundIDBVersionChangeTransaction.ipdl
PBackgroundIndexedDBUtils.ipdl
PIndexedDBPermissionRequest.ipdl
PermissionRequestBase.cpp Bug 1455676 part 18. Stop using getInterface as the primary API for the indexeddb permission notifications. r=mrbkap 2018-05-29 22:58:50 -04:00
PermissionRequestBase.h Bug 1455676 part 18. Stop using getInterface as the primary API for the indexeddb permission notifications. r=mrbkap 2018-05-29 22:58:50 -04:00
ProfilerHelpers.h Bug 1455052 part 10. Remove various unused nsIDOMEvent bits. r=masayuki 2018-04-20 12:55:31 -04:00
ReportInternalError.cpp Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
ReportInternalError.h
ScriptErrorHelper.cpp Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
ScriptErrorHelper.h
SerializationHelpers.h
moz.build Bug 1455676 part 18. Stop using getInterface as the primary API for the indexeddb permission notifications. r=mrbkap 2018-05-29 22:58:50 -04:00
nsIIDBPermissionsRequest.idl Bug 1455676 part 18. Stop using getInterface as the primary API for the indexeddb permission notifications. r=mrbkap 2018-05-29 22:58:50 -04:00