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

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

Issue 1157403004: Credential Management: Add 'Credential::type' attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@rename-federated
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/WebCredential.h" 6 #include "public/platform/WebCredential.h"
7 7
8 #include "platform/credentialmanager/PlatformCredential.h" 8 #include "platform/credentialmanager/PlatformCredential.h"
9 #include "public/platform/WebFederatedCredential.h" 9 #include "public/platform/WebFederatedCredential.h"
10 #include "public/platform/WebLocalCredential.h" 10 #include "public/platform/WebLocalCredential.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 WebString WebCredential::name() const 66 WebString WebCredential::name() const
67 { 67 {
68 return m_platformCredential->name(); 68 return m_platformCredential->name();
69 } 69 }
70 70
71 WebURL WebCredential::avatarURL() const 71 WebURL WebCredential::avatarURL() const
72 { 72 {
73 return m_platformCredential->avatarURL(); 73 return m_platformCredential->avatarURL();
74 } 74 }
75 75
76 WebString WebCredential::type() const
77 {
78 return m_platformCredential->type();
79 }
80
76 bool WebCredential::isLocalCredential() const 81 bool WebCredential::isLocalCredential() const
77 { 82 {
78 return m_platformCredential->isLocal(); 83 return m_platformCredential->isLocal();
79 } 84 }
80 85
81 bool WebCredential::isFederatedCredential() const 86 bool WebCredential::isFederatedCredential() const
82 { 87 {
83 return m_platformCredential->isFederated(); 88 return m_platformCredential->isFederated();
84 } 89 }
85 90
86 } // namespace blink 91 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/credentialmanager/PlatformLocalCredential.cpp ('k') | public/platform/WebCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698