| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "public/platform/WebFederatedCredential.h" | 6 #include "public/platform/WebFederatedCredential.h" |
| 7 | 7 |
| 8 #include "platform/credentialmanager/PlatformFederatedCredential.h" | 8 #include "platform/credentialmanager/PlatformFederatedCredential.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 WebFederatedCredential::WebFederatedCredential(const WebString& id, const WebURL
& federation, const WebString& name, const WebURL& avatarURL) | 11 WebFederatedCredential::WebFederatedCredential(const WebString& id, const WebURL
& provider, const WebString& name, const WebURL& iconURL) |
| 12 : WebCredential(PlatformFederatedCredential::create(id, federation, name, av
atarURL)) | 12 : WebCredential(PlatformFederatedCredential::create(id, provider, name, icon
URL)) |
| 13 { | 13 { |
| 14 } | 14 } |
| 15 | 15 |
| 16 // FIXME: Throw this away once it's unused on the Chromium side. | |
| 17 WebFederatedCredential::WebFederatedCredential(const WebString& id, const WebStr
ing& name, const WebURL& avatarURL, const WebURL& federation) | |
| 18 : WebCredential(PlatformFederatedCredential::create(id, federation, name, av
atarURL)) | |
| 19 { | |
| 20 } | |
| 21 | |
| 22 void WebFederatedCredential::assign(const WebFederatedCredential& other) | 16 void WebFederatedCredential::assign(const WebFederatedCredential& other) |
| 23 { | 17 { |
| 24 m_platformCredential = other.m_platformCredential; | 18 m_platformCredential = other.m_platformCredential; |
| 25 } | 19 } |
| 26 | 20 |
| 27 WebURL WebFederatedCredential::federation() const | 21 WebURL WebFederatedCredential::provider() const |
| 28 { | 22 { |
| 29 return static_cast<PlatformFederatedCredential*>(m_platformCredential.get())
->federation(); | 23 return static_cast<PlatformFederatedCredential*>(m_platformCredential.get())
->provider(); |
| 30 } | 24 } |
| 31 | 25 |
| 32 WebFederatedCredential::WebFederatedCredential(PlatformCredential* credential) | 26 WebFederatedCredential::WebFederatedCredential(PlatformCredential* credential) |
| 33 : WebCredential(credential) | 27 : WebCredential(credential) |
| 34 { | 28 { |
| 35 } | 29 } |
| 36 | 30 |
| 37 WebFederatedCredential& WebFederatedCredential::operator=(PlatformCredential* cr
edential) | 31 WebFederatedCredential& WebFederatedCredential::operator=(PlatformCredential* cr
edential) |
| 38 { | 32 { |
| 39 m_platformCredential = credential; | 33 m_platformCredential = credential; |
| 40 return *this; | 34 return *this; |
| 41 } | 35 } |
| 42 | 36 |
| 43 } // namespace blink | 37 } // namespace blink |
| 44 | 38 |
| OLD | NEW |