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..075b3884a99553ee0b8146642b61d49af899af16 100644 |
--- a/net/http/url_security_manager.cc |
+++ b/net/http/url_security_manager.cc |
@@ -8,12 +8,7 @@ |
namespace net { |
-URLSecurityManagerWhitelist::URLSecurityManagerWhitelist( |
- const HttpAuthFilter* whitelist_default, |
- const HttpAuthFilter* whitelist_delegate) |
- : whitelist_default_(whitelist_default), |
- whitelist_delegate_(whitelist_delegate) { |
-} |
+URLSecurityManagerWhitelist::URLSecurityManagerWhitelist() {} |
URLSecurityManagerWhitelist::~URLSecurityManagerWhitelist() {} |
@@ -30,4 +25,18 @@ bool URLSecurityManagerWhitelist::CanDelegate(const GURL& auth_origin) const { |
return false; |
} |
+void URLSecurityManagerWhitelist::SetDefaultWhitelist( |
+ scoped_ptr<HttpAuthFilter> whitelist_default) { |
+ whitelist_default_ = whitelist_default.Pass(); |
+} |
+ |
+void URLSecurityManagerWhitelist::SetDelegateWhitelist( |
+ scoped_ptr<HttpAuthFilter> whitelist_delegate) { |
+ whitelist_delegate_ = whitelist_delegate.Pass(); |
+} |
+ |
+bool URLSecurityManagerWhitelist::HasDefaultWhitelist() const { |
+ return whitelist_default_.get() != nullptr; |
+} |
+ |
} // namespace net |