Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: net/http/url_security_manager.cc

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix various build problems detected on bots. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/url_security_manager.cc
diff --git a/net/http/url_security_manager.cc b/net/http/url_security_manager.cc
index 4ff0f654dacfbcb192e1f83cda0e38bf98c1acd1..409cfde63209012725ed7ed34b5f55d8d10e4993 100644
--- a/net/http/url_security_manager.cc
+++ b/net/http/url_security_manager.cc
@@ -30,4 +30,18 @@ bool URLSecurityManagerWhitelist::CanDelegate(const GURL& auth_origin) const {
return false;
}
+void URLSecurityManagerWhitelist::SetDefaultWhitelist(
+ const HttpAuthFilter* whitelist_default) {
+ whitelist_default_.reset(whitelist_default);
+}
+
+void URLSecurityManagerWhitelist::SetDelegateWhitelist(
+ const HttpAuthFilter* whitelist_delegate) {
+ whitelist_delegate_.reset(whitelist_delegate);
+}
+
+bool URLSecurityManagerWhitelist::HasDefaultWhitelist() const {
+ return whitelist_default_.get() == nullptr;
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698