refactor: remove ProcessPreferences (#28786)

This commit is contained in:
Jeremy Rose 2021-04-23 12:57:40 -07:00 committed by GitHub
parent 33bbdcf1de
commit 1c57e078aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 65 deletions

View file

@ -272,19 +272,6 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
const content::ChildProcessTerminationInfo& info) override;
private:
struct ProcessPreferences {
bool sandbox = false;
bool native_window_open = false;
bool disable_popups = false;
bool web_security = true;
content::BrowserContext* browser_context = nullptr;
};
void AddProcessPreferences(int process_id, ProcessPreferences prefs);
void RemoveProcessPreferences(int process_id);
bool IsProcessObserved(int process_id) const;
bool RendererUsesNativeWindowOpen(int process_id) const;
bool RendererDisablesPopups(int process_id) const;
content::SiteInstance* GetSiteInstanceFromAffinity(
content::BrowserContext* browser_context,
const GURL& url,
@ -302,8 +289,6 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
Delegate* delegate_ = nullptr;
std::map<int, ProcessPreferences> process_preferences_;
std::string user_agent_override_ = "";
// Simple shared ID generator, used by ProxyingURLLoaderFactory and