30 #include <nsIObjectOutputStream.h>
32 PLDHashOperator PR_CALLBACK
37 NS_ASSERTION(aUserData,
"Null userData!");
39 nsIObjectOutputStream* stream =
40 static_cast<nsIObjectOutputStream*
>(aUserData);
41 NS_ASSERTION(stream,
"Could not cast user data");
44 rv = stream->WriteWStringZ(aKey.BeginReading());
45 NS_ENSURE_SUCCESS(rv, PL_DHASH_STOP);
47 rv = stream->WriteWStringZ(aEntry.BeginReading());
48 NS_ENSURE_SUCCESS(rv, PL_DHASH_STOP);
53 PLDHashOperator PR_CALLBACK
58 NS_ASSERTION(aUserData,
"Null userData!");
62 NS_ASSERTION(list,
"Could not cast user data");
64 PRBool success = list->Put(aKey, aEntry);
65 NS_ENSURE_TRUE(success, PL_DHASH_STOP);
70 PLDHashOperator PR_CALLBACK
75 NS_ASSERTION(aUserData,
"Null userData!");
77 nsTArray<nsString>* list =
static_cast<nsTArray<nsString>*
>(aUserData);
78 NS_ASSERTION(list,
"Could not cast user data");
80 nsString* appended = list->AppendElement(aEntry);
81 NS_ENSURE_TRUE(appended, PL_DHASH_STOP);
nsDataHashtable< nsStringHashKey, nsString > sbSelectionList
PLDHashOperator PR_CALLBACK SB_SelectionListGuidsToTArrayCallback(nsStringHashKey::KeyType aKey, nsString aEntry, void *aUserData)
PLDHashOperator PR_CALLBACK SB_CopySelectionListCallback(nsStringHashKey::KeyType aKey, nsString aEntry, void *aUserData)
PLDHashOperator PR_CALLBACK SB_SerializeSelectionListCallback(nsStringHashKey::KeyType aKey, nsString aEntry, void *aUserData)