refactor: remove ProcessPreferences (#28786)
This commit is contained in:
parent
33bbdcf1de
commit
1c57e078aa
2 changed files with 17 additions and 65 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue