summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/Authentication/WebCredential.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/UIProcess/Authentication/WebCredential.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebKit2/UIProcess/Authentication/WebCredential.h')
-rw-r--r--Source/WebKit2/UIProcess/Authentication/WebCredential.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/Source/WebKit2/UIProcess/Authentication/WebCredential.h b/Source/WebKit2/UIProcess/Authentication/WebCredential.h
index efff6548c..eaaa1f70c 100644
--- a/Source/WebKit2/UIProcess/Authentication/WebCredential.h
+++ b/Source/WebKit2/UIProcess/Authentication/WebCredential.h
@@ -29,7 +29,6 @@
#include "APIObject.h"
#include "APIString.h"
#include <WebCore/Credential.h>
-#include <wtf/PassRefPtr.h>
namespace WebKit {
@@ -39,27 +38,20 @@ class WebCredential : public API::ObjectImpl<API::Object::Type::Credential> {
public:
~WebCredential();
- static PassRefPtr<WebCredential> create(const WebCore::Credential& credential)
+ static Ref<WebCredential> create(const WebCore::Credential& credential)
{
- return adoptRef(new WebCredential(credential));
+ return adoptRef(*new WebCredential(credential));
}
- static PassRefPtr<WebCredential> create(API::String* username, API::String* password, WebCore::CredentialPersistence persistence)
+ static Ref<WebCredential> create(WebCertificateInfo* certificateInfo)
{
- return adoptRef(new WebCredential(WebCore::Credential(username->string(), password->string(), persistence)));
- }
-
- static PassRefPtr<WebCredential> create(WebCertificateInfo* certificateInfo)
- {
- return adoptRef(new WebCredential(certificateInfo));
+ return adoptRef(*new WebCredential(certificateInfo));
}
WebCertificateInfo* certificateInfo();
- const WebCore::Credential& core();
+ const WebCore::Credential& credential();
- const String& user() const;
-
private:
explicit WebCredential(const WebCore::Credential&);
explicit WebCredential(WebCertificateInfo*);