Title: [101312] trunk/Source/WebCore
Revision
101312
Author
leo.y...@torchmobile.com.cn
Date
2011-11-28 18:17:51 -0800 (Mon, 28 Nov 2011)

Log Message

Upstream platform/network/blackberry/AuthenticationChallenge.h
https://bugs.webkit.org/show_bug.cgi?id=73196

Reviewed by Daniel Bates.

This is the BlackBerry implementation of WebCore::AuthenticationChallenge.
Contributed by Torch Team.

Initial upstream, can't be built yet, no new tests.

* platform/network/blackberry/AuthenticationChallenge.h: Added.
(WebCore::AuthenticationChallenge::AuthenticationChallenge):
(WebCore::AuthenticationChallenge::setStored):
(WebCore::AuthenticationChallenge::isStored):

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (101311 => 101312)


--- trunk/Source/WebCore/ChangeLog	2011-11-29 01:38:32 UTC (rev 101311)
+++ trunk/Source/WebCore/ChangeLog	2011-11-29 02:17:51 UTC (rev 101312)
@@ -1,3 +1,20 @@
+2011-11-28  Leo Yang  <leo.y...@torchmobile.com.cn>
+
+        Upstream platform/network/blackberry/AuthenticationChallenge.h
+        https://bugs.webkit.org/show_bug.cgi?id=73196
+
+        Reviewed by Daniel Bates.
+
+        This is the BlackBerry implementation of WebCore::AuthenticationChallenge.
+        Contributed by Torch Team.
+
+        Initial upstream, can't be built yet, no new tests.
+
+        * platform/network/blackberry/AuthenticationChallenge.h: Added.
+        (WebCore::AuthenticationChallenge::AuthenticationChallenge):
+        (WebCore::AuthenticationChallenge::setStored):
+        (WebCore::AuthenticationChallenge::isStored):
+
 2011-11-28  Dana Jansens  <dan...@chromium.org>
 
         Synchronization problem in Canvas/WebGLRenderingContext when listener asks for image

Added: trunk/Source/WebCore/platform/network/blackberry/AuthenticationChallenge.h (0 => 101312)


--- trunk/Source/WebCore/platform/network/blackberry/AuthenticationChallenge.h	                        (rev 0)
+++ trunk/Source/WebCore/platform/network/blackberry/AuthenticationChallenge.h	2011-11-29 02:17:51 UTC (rev 101312)
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2009, 2010, 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef AuthenticationChallenge_h
+#define AuthenticationChallenge_h
+
+#include "AuthenticationChallengeBase.h"
+
+namespace WebCore {
+
+class AuthenticationChallenge : public AuthenticationChallengeBase {
+public:
+    AuthenticationChallenge()
+        : m_isStored(false)
+    {
+    }
+
+    AuthenticationChallenge(const ProtectionSpace& protectionSpace, const Credential& proposedCredential, unsigned previousFailureCount, const ResourceResponse& response, const ResourceError& error)
+        : AuthenticationChallengeBase(protectionSpace, proposedCredential, previousFailureCount, response, error)
+        , m_isStored(false)
+    {
+    }
+
+    void setStored(bool isStored) { m_isStored = isStored; }
+    bool isStored() const { return m_isStored; }
+
+private:
+    // Describes if attached credentials are stored in CredentialStorage.
+    bool m_isStored;
+};
+
+} // namespace WebCore
+
+#endif // AuthenticationChallenge_h
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to