diff options
Diffstat (limited to 'net/http/url_security_manager.h')
-rw-r--r-- | net/http/url_security_manager.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net/http/url_security_manager.h b/net/http/url_security_manager.h new file mode 100644 index 0000000..7309fef --- /dev/null +++ b/net/http/url_security_manager.h @@ -0,0 +1,34 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_HTTP_URL_SECURITY_MANAGER_H_ +#define NET_HTTP_URL_SECURITY_MANAGER_H_ + +class GURL; + +namespace net { + +// The URL security manager controls the policies (allow, deny, prompt user) +// regarding URL actions (e.g., sending the default credentials to a server). +// +// On Windows, we honor the WinINet/IE settings and group policy related to +// URL Security Zones. See the Microsoft Knowledge Base article 182569 +// "Internet Explorer security zones registry entries for advanced users" +// (http://support.microsoft.com/kb/182569) for more info on these registry +// keys. +class URLSecurityManager { + public: + virtual ~URLSecurityManager() {} + + // Creates a platform-dependent instance of URLSecurityManager. + static URLSecurityManager* Create(); + + // 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; +}; + +} // namespace net + +#endif // NET_HTTP_URL_SECURITY_MANAGER_H_ |