<rdar://problem/5472130> Support NTLM authentication via CFNetwork.
[WebKit-https.git] / WebCore / platform / network / ProtectionSpace.h
index e9743f52f2e7d05d1a51b60bdc29847c61b290d8..9a73cff6372c2dd144c5f334f8bf16be106712f2 100644 (file)
@@ -22,8 +22,8 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
-#ifndef ProtectionSpace_h_
-#define ProtectionSpace_h_
+#ifndef ProtectionSpace_h
+#define ProtectionSpace_h
 
 #include "PlatformString.h"
 
@@ -45,6 +45,8 @@ enum ProtectionSpaceAuthenticationScheme {
   ProtectionSpaceAuthenticationSchemeHTTPBasic = 2,
   ProtectionSpaceAuthenticationSchemeHTTPDigest = 3,
   ProtectionSpaceAuthenticationSchemeHTMLForm = 4,
+  ProtectionSpaceAuthenticationSchemeNTLM = 5,
+  ProtectionSpaceAuthenticationSchemeNegotiate = 6,
 };
 
 class ProtectionSpace {
@@ -56,9 +58,12 @@ public:
     const String& host() const;
     int port() const;
     ProtectionSpaceServerType serverType() const;
+    bool isProxy() const;
     const String& realm() const;
     ProtectionSpaceAuthenticationScheme authenticationScheme() const;
     
+    bool receivesCredentialSecurely() const;
+
 private:
     String m_host;
     int m_port;