Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: Source/platform/exported/WebFederatedCredential.cpp

Issue 1162883002: Credential Manager: Align 'FederatedCredential' with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « Source/platform/credentialmanager/PlatformFederatedCredential.cpp ('k') | public/platform/WebFederatedCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698