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

Unified Diff: net/http/url_security_manager.h

Issue 3013003: Don't do Negotiate with GSSAPI if default credentials are not allowed. (Closed)
Patch Set: Remove anonymous namespace to make OSX build. Created 10 years, 5 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
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/url_security_manager.h
diff --git a/net/http/url_security_manager.h b/net/http/url_security_manager.h
index 5f68e3ade84dcbe9b63f68711d3cd33156d63cea..cd80a7db349576e048d1ecd151a1a0ba4043786e 100644
--- a/net/http/url_security_manager.h
+++ b/net/http/url_security_manager.h
@@ -47,6 +47,22 @@ class URLSecurityManagerWhitelist : public URLSecurityManager {
DISALLOW_COPY_AND_ASSIGN(URLSecurityManagerWhitelist);
};
+#if defined(UNIT_TEST)
+// An URLSecurityManager which always allows default credentials.
+class URLSecurityManagerAllow : public URLSecurityManager {
+ public:
+ URLSecurityManagerAllow() {}
+ virtual ~URLSecurityManagerAllow() {}
+
+ virtual bool CanUseDefaultCredentials(const GURL& auth_origin) {
+ return true;
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(URLSecurityManagerAllow);
+};
+#endif // defined(UNIT_TEST)
+
} // namespace net
#endif // NET_HTTP_URL_SECURITY_MANAGER_H_
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698