summaryrefslogtreecommitdiffstats
path: root/net/http/url_security_manager.h
diff options
context:
space:
mode:
authorahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 17:27:10 +0000
committerahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 17:27:10 +0000
commit930cbb5855c54aedb590bc522963320c189a3e52 (patch)
tree3d579aa9a2c65210b2c3453e32a0d2991d4bf2f9 /net/http/url_security_manager.h
parente457f74143dcabf0663983cb376425f121a0dc84 (diff)
downloadchromium_src-930cbb5855c54aedb590bc522963320c189a3e52.zip
chromium_src-930cbb5855c54aedb590bc522963320c189a3e52.tar.gz
chromium_src-930cbb5855c54aedb590bc522963320c189a3e52.tar.bz2
Added command-line whitelist data to UrlSecurityManager. These are used by all platforms; Windows will use IInternetSecurityManager if they are not present.
Removed registry code from HttpAuthFilterWhitelist, as we're now using a different method of authentication on Windows. BUG=29596 TEST=None. Review URL: http://codereview.chromium.org/1569010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/url_security_manager.h')
-rw-r--r--net/http/url_security_manager.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/http/url_security_manager.h b/net/http/url_security_manager.h
index 7309fef..d4413e4e 100644
--- a/net/http/url_security_manager.h
+++ b/net/http/url_security_manager.h
@@ -9,6 +9,8 @@ class GURL;
namespace net {
+class HttpAuthFilter;
+
// The URL security manager controls the policies (allow, deny, prompt user)
// regarding URL actions (e.g., sending the default credentials to a server).
//
@@ -19,14 +21,19 @@ namespace net {
// keys.
class URLSecurityManager {
public:
+ // The UrlSecurityManager does not take ownership of the HttpAuthFilter.
+ explicit URLSecurityManager(const HttpAuthFilter* whitelist);
virtual ~URLSecurityManager() {}
// Creates a platform-dependent instance of URLSecurityManager.
- static URLSecurityManager* Create();
+ static URLSecurityManager* Create(const HttpAuthFilter* whitelist);
// Returns true if we can send the default credentials to the server at
// |auth_origin| for HTTP NTLM or Negotiate authentication.
virtual bool CanUseDefaultCredentials(const GURL& auth_origin) const = 0;
+
+ protected:
+ const HttpAuthFilter* whitelist_;
};
} // namespace net