Track child web contents
This commit is contained in:
parent
659722924d
commit
34ed1a9ef8
8 changed files with 55 additions and 55 deletions
21
atom/browser/child_web_contents_tracker.h
Normal file
21
atom/browser/child_web_contents_tracker.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef ATOM_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
|
||||
#define ATOM_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
|
||||
|
||||
#include "content/public/browser/web_contents_observer.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
// ChildWebContentsTracker tracks root WebContents created by
|
||||
// `new BrowserWindow`.
|
||||
class ChildWebContentsTracker : public content::WebContentsObserver {
|
||||
public:
|
||||
ChildWebContentsTracker(content::WebContents* web_contents);
|
||||
static bool IsChildWebContents(content::WebContents* web_contents);
|
||||
|
||||
protected:
|
||||
void WebContentsDestroyed() override;
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
|
Loading…
Add table
Add a link
Reference in a new issue