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

Unified Diff: Source/platform/credentialmanager/PlatformCredential.h

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, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/credentialmanager/PlatformCredential.h
diff --git a/Source/platform/credentialmanager/PlatformCredential.h b/Source/platform/credentialmanager/PlatformCredential.h
index f3bc8f9de606fcaf7571a7e5c1925ba019589e50..45abe4c284e0388d8b406d091f955ee22ba1d3c2 100644
--- a/Source/platform/credentialmanager/PlatformCredential.h
+++ b/Source/platform/credentialmanager/PlatformCredential.h
@@ -20,6 +20,7 @@ public:
const String& id() const { return m_id; }
const String& name() const { return m_name; }
const KURL& avatarURL() const { return m_avatarURL; }
+ const String& type() const { return m_type; }
virtual bool isLocal() { return false; }
virtual bool isFederated() { return false; }
@@ -29,10 +30,13 @@ public:
protected:
PlatformCredential(const String& id, const String& name, const KURL& avatarURL);
+ void setType(const String& type) { m_type = type; }
+
private:
String m_id;
String m_name;
KURL m_avatarURL;
+ String m_type;
};
} // namespace blink
« no previous file with comments | « Source/modules/credentialmanager/Credential.idl ('k') | Source/platform/credentialmanager/PlatformCredential.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698