| Index: Source/platform/exported/WebPasswordCredential.cpp
|
| diff --git a/Source/platform/exported/WebPasswordCredential.cpp b/Source/platform/exported/WebPasswordCredential.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b78868053d031804c049aeabdd8be994ef7a7fff
|
| --- /dev/null
|
| +++ b/Source/platform/exported/WebPasswordCredential.cpp
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#include "config.h"
|
| +#include "public/platform/WebPasswordCredential.h"
|
| +
|
| +#include "platform/credentialmanager/PlatformPasswordCredential.h"
|
| +
|
| +namespace blink {
|
| +WebPasswordCredential::WebPasswordCredential(const WebString& id, const WebString& password, const WebString& name, const WebURL& avatarURL)
|
| + : WebCredential(PlatformPasswordCredential::create(id, password, name, avatarURL))
|
| +{
|
| +}
|
| +
|
| +void WebPasswordCredential::assign(const WebPasswordCredential& other)
|
| +{
|
| + m_platformCredential = other.m_platformCredential;
|
| +}
|
| +
|
| +WebString WebPasswordCredential::password() const
|
| +{
|
| + return static_cast<PlatformPasswordCredential*>(m_platformCredential.get())->password();
|
| +}
|
| +
|
| +WebPasswordCredential::WebPasswordCredential(PlatformCredential* credential)
|
| + : WebCredential(credential)
|
| +{
|
| +}
|
| +
|
| +WebPasswordCredential& WebPasswordCredential::operator=(PlatformCredential* credential)
|
| +{
|
| + m_platformCredential = credential;
|
| + return *this;
|
| +}
|
| +
|
| +} // namespace blink
|
| +
|
| +
|
|
|