Improve RootWebContentsTracker

This commit is contained in:
Ryohei Ikegami 2017-04-06 11:29:01 +09:00
parent b683584859
commit 526086d900
6 changed files with 55 additions and 28 deletions

View file

@ -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);
};