AtomBrowserContext::AtomBrowserContext(const std::string& partition,
bool in_memory)
: brightray::BrowserContext(partition, in_memory),
- job_factory_(new AtomURLRequestJobFactory) {
-}
+ job_factory_(new AtomURLRequestJobFactory),
+ allow_ntlm_everywhere_(false) : { }
AtomBrowserContext::~AtomBrowserContext() {
}
base::FilePath());
}
+
+bool AtomBrowserContext::AllowNTLMCredentialsForDomain(const GURL& auth_origin) {
+ if (allow_ntlm_everywhere_) return true;
+ return brightray::URLRequestContextGetter::Delegate::AllowNTLMCredentialsForDomain(auth_origin);
+}
+
} // namespace atom
namespace brightray {
net::HttpCache::BackendFactory* CreateHttpCacheBackendFactory(
const base::FilePath& base_path) override;
net::SSLConfigService* CreateSSLConfigService() override;
+ bool AllowNTLMCredentialsForDomain(const GURL& auth_origin) override;
// content::BrowserContext:
content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
// Managed by brightray::BrowserContext.
AtomURLRequestJobFactory* job_factory_;
+
+ bool allow_ntlm_everywhere_;
DISALLOW_COPY_AND_ASSIGN(AtomBrowserContext);
};