1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
8 #include "base/strings/string16.h"
13 // Indicates the specific type of a Credential object.
15 CREDENTIAL_TYPE_EMPTY
= 0,
16 CREDENTIAL_TYPE_PASSWORD
,
17 CREDENTIAL_TYPE_FEDERATED
,
18 CREDENTIAL_TYPE_LAST
= CREDENTIAL_TYPE_FEDERATED
21 // Represents an instance of the JavaScript Credential type.
26 // The specific type of this credential.
29 // An identifier for the credential.
32 // A human-understandable name corresponding to the credential.
35 // The URL of the user's avatar.
38 // The password for a local credential.
39 base::string16 password
;
41 // The federation URL for a federated credential.
45 // Determines whether two credentials are equal.
46 bool CredentialsEqual(const web::Credential
& credential1
,
47 const web::Credential
& credential2
);
51 #endif // IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_