Clean up the code handling renderer callback
This commit is contained in:
parent
323ab92299
commit
cb91d4487b
4 changed files with 24 additions and 33 deletions
|
@ -24,17 +24,15 @@ class IDWeakMap : public mate::Wrappable {
|
|||
IDWeakMap();
|
||||
~IDWeakMap();
|
||||
|
||||
// mate::Wrappable:
|
||||
bool IsDestroyed() const override;
|
||||
|
||||
private:
|
||||
// Api for IDWeakMap.
|
||||
void Set(v8::Isolate* isolate, int32_t id, v8::Local<v8::Object> object);
|
||||
v8::Local<v8::Object> Get(v8::Isolate* isolate, int32_t id);
|
||||
bool Has(int32_t id);
|
||||
void Remove(int32_t id);
|
||||
void Clear();
|
||||
|
||||
atom::IDWeakMap* id_weak_map_;
|
||||
atom::IDWeakMap id_weak_map_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(IDWeakMap);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue