mirror of
https://github.com/electron/electron.git
synced 2026-02-02 19:25:41 -05:00
Create a new API to trump IE security settings if desired
This commit is contained in:
@@ -232,4 +232,8 @@ content::PermissionManager* BrowserContext::GetPermissionManager() {
|
||||
return permission_manager_.get();
|
||||
}
|
||||
|
||||
void BrowserContext::AllowNTLMCredentialsForAllDomains(bool should_allow) {
|
||||
url_request_getter_->AllowNTLMCredentialsForAllDomains(should_allow);
|
||||
}
|
||||
|
||||
} // namespace brightray
|
||||
|
||||
@@ -71,6 +71,8 @@ class BrowserContext : public base::RefCounted<BrowserContext>,
|
||||
void InitPrefs();
|
||||
PrefService* prefs() { return prefs_.get(); }
|
||||
|
||||
void AllowNTLMCredentialsForAllDomains(bool should_allow);
|
||||
|
||||
protected:
|
||||
BrowserContext(const std::string& partition, bool in_memory);
|
||||
~BrowserContext() override;
|
||||
|
||||
@@ -330,4 +330,8 @@ scoped_refptr<base::SingleThreadTaskRunner> URLRequestContextGetter::GetNetworkT
|
||||
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
|
||||
}
|
||||
|
||||
void URLRequestContextGetter::AllowNTLMCredentialsForAllDomains(bool should_allow) {
|
||||
url_sec_mgr_->AllowNTLMCredentialsForAllDomains(should_allow);
|
||||
}
|
||||
|
||||
} // namespace brightray
|
||||
|
||||
@@ -78,6 +78,8 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
|
||||
net::URLRequestContext* GetURLRequestContext() override;
|
||||
scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() const override;
|
||||
|
||||
void AllowNTLMCredentialsForAllDomains(bool should_allow);
|
||||
|
||||
net::HostResolver* host_resolver();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user