Always create new SiteInstance on root WebContents

This commit is contained in:
Ryohei Ikegami 2017-04-05 17:51:17 +09:00
parent 90852c665d
commit cbdd52e43b
2 changed files with 41 additions and 3 deletions

View file

@ -12,6 +12,7 @@
#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;
@ -136,6 +137,18 @@ 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);
};