Make sure each C++ WebContents has only one JS WebContents
This commit is contained in:
parent
552a12d2ee
commit
1023b67d59
4 changed files with 21 additions and 2 deletions
|
@ -39,7 +39,7 @@ class TrackableObject : public mate::EventEmitter {
|
|||
~TrackableObject() override;
|
||||
|
||||
// Wrap TrackableObject into a class that SupportsUserData.
|
||||
void Attach(base::SupportsUserData* wrapped);
|
||||
void AttachAsUserData(base::SupportsUserData* wrapped);
|
||||
|
||||
private:
|
||||
static atom::IDWeakMap weak_map_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue