Improve RootWebContentsTracker
This commit is contained in:
parent
b683584859
commit
526086d900
6 changed files with 55 additions and 28 deletions
|
@ -12,7 +12,6 @@
|
|||
|
||||
#include "brightray/browser/browser_client.h"
|
||||
#include "content/public/browser/render_process_host_observer.h"
|
||||
#include "content/public/browser/web_contents_observer.h"
|
||||
|
||||
namespace content {
|
||||
class QuotaPermissionContext;
|
||||
|
@ -137,18 +136,6 @@ class AtomBrowserClient : public brightray::BrowserClient,
|
|||
|
||||
Delegate* delegate_;
|
||||
|
||||
class RootWebContentsTracker : public content::WebContentsObserver {
|
||||
public:
|
||||
RootWebContentsTracker(content::WebContents* web_contents,
|
||||
AtomBrowserClient* client);
|
||||
void WebContentsDestroyed() override;
|
||||
|
||||
private:
|
||||
AtomBrowserClient* client_;
|
||||
};
|
||||
|
||||
std::set<content::WebContents*> root_web_contents_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomBrowserClient);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue