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

Side by Side Diff: ios/web/public/web_state/credential.h

Issue 1107083002: Upstream more leaf files in ios/web/web_state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-resync
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/web_state/crw_web_controller_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
7
8 #include "base/strings/string16.h"
9 #include "url/gurl.h"
10
11 namespace web {
12
13 // Indicates the specific type of a Credential object.
14 enum CredentialType {
15 CREDENTIAL_TYPE_EMPTY = 0,
16 CREDENTIAL_TYPE_LOCAL,
17 CREDENTIAL_TYPE_FEDERATED,
18 CREDENTIAL_TYPE_LAST = CREDENTIAL_TYPE_FEDERATED
19 };
20
21 // Represents an instance of the JavaScript Credential type.
22 struct Credential {
23 Credential();
24 ~Credential();
25
26 // The specific type of this credential.
27 CredentialType type;
28
29 // An identifier for the credential.
30 base::string16 id;
31
32 // A human-understandable name corresponding to the credential.
33 base::string16 name;
34
35 // The URL of the user's avatar.
36 GURL avatar_url;
37
38 // The password for a local credential.
39 base::string16 password;
40
41 // The federation URL for a federated credential.
42 GURL federation_url;
43 };
44
45 } // namespace web
46
47 #endif // IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
OLDNEW
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/web_state/crw_web_controller_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698