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

Unified 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, 8 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/credential.h
diff --git a/ios/web/public/web_state/credential.h b/ios/web/public/web_state/credential.h
new file mode 100644
index 0000000000000000000000000000000000000000..f66d567e0b248b68dd7057eecb7f351d40537d1f
--- /dev/null
+++ b/ios/web/public/web_state/credential.h
@@ -0,0 +1,47 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
+#define IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
+
+#include "base/strings/string16.h"
+#include "url/gurl.h"
+
+namespace web {
+
+// Indicates the specific type of a Credential object.
+enum CredentialType {
+ CREDENTIAL_TYPE_EMPTY = 0,
+ CREDENTIAL_TYPE_LOCAL,
+ CREDENTIAL_TYPE_FEDERATED,
+ CREDENTIAL_TYPE_LAST = CREDENTIAL_TYPE_FEDERATED
+};
+
+// Represents an instance of the JavaScript Credential type.
+struct Credential {
+ Credential();
+ ~Credential();
+
+ // The specific type of this credential.
+ CredentialType type;
+
+ // An identifier for the credential.
+ base::string16 id;
+
+ // A human-understandable name corresponding to the credential.
+ base::string16 name;
+
+ // The URL of the user's avatar.
+ GURL avatar_url;
+
+ // The password for a local credential.
+ base::string16 password;
+
+ // The federation URL for a federated credential.
+ GURL federation_url;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_WEB_STATE_CREDENTIAL_H_
« 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