Cheng Zhao
ea93553225
Make KeyWeakMap a template class
2016-05-11 15:17:35 +09:00
Cheng Zhao
e6c0b1fe0c
Fix leak when KeyWeakMap::Remove is called directly
...
Usually the KeyObject would be destroyed when GC happens, but then
Remove is called before GC happens, the KeyObject would be leaked
forever. This fixes it by keeping KeyObject as a member of map.
2016-05-11 15:17:35 +09:00
Cheng Zhao
79c1ad85f9
Add KeyWeakMap without Add method
2016-05-11 15:17:35 +09:00
Cheng Zhao
7f2a46cdd5
Remove unused methods of IDWeakMap
2016-05-11 15:17:35 +09:00
Robo
2c59f4567e
use webcontents id to identify callbacks
2015-10-30 19:51:19 +05:30
Robo
ac4df34ecd
create binding to idweakmap
2015-10-29 17:51:56 +05:30
Robo
eae7c840b7
use idweakmap for holding callbacks in browser
2015-10-29 17:51:56 +05:30
Cheng Zhao
bd64f5ced2
Use V8's new SetWeak method
2015-08-27 16:41:51 +08:00
Cheng Zhao
28d1fb8cad
Add Values() method for IDWeakMap
2015-06-24 16:54:20 +08:00
Cheng Zhao
7f0658efa7
Add mate::TrackableObject
2015-06-24 14:36:05 +08:00
Cheng Zhao
d02413de00
Make the JS IDWeakMap a thin wrapper of C++ IDWeakMap
2015-06-24 13:35:39 +08:00
Cheng Zhao
cd93b9412c
Add C++ version of IDWeakMap
2015-06-24 13:22:09 +08:00