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

Unified Diff: components/password_manager/content/common/credential_manager_types.h

Issue 464883002: Credential Manager: Renderer-side implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: components/password_manager/content/common/credential_manager_types.h
diff --git a/components/password_manager/content/common/credential_manager_types.h b/components/password_manager/content/common/credential_manager_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c5738b7816c5577f60b58e549b7ba0b674e482c
--- /dev/null
+++ b/components/password_manager/content/common/credential_manager_types.h
@@ -0,0 +1,45 @@
+// Copyright 2014 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 COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_TYPES_H_
+#define COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_TYPES_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/strings/string16.h"
+#include "url/gurl.h"
+
+namespace password_manager {
+
+enum CredentialManagerCredentialType {
+ CREDENTIAL_MANAGER_CREDENTIAL_TYPE_UNKNOWN = 0,
+ CREDENTIAL_MANAGER_CREDENTIAL_TYPE_LOCAL,
+ CREDENTIAL_MANAGER_CREDENTIAL_TYPE_FEDERATED,
+ CREDENTIAL_MANAGER_CREDENTIAL_TYPE_LAST = CREDENTIAL_MANAGER_CREDENTIAL_TYPE_FEDERATED
+};
+
+struct CredentialManagerCredentialInfo {
Ilya Sherman 2014/08/15 20:42:37 nit: This name is a bit repetitive -- perhaps just
+ CredentialManagerCredentialInfo();
+ CredentialManagerCredentialInfo(base::string16 id, base::string16 name, GURL avatarURL);
Ilya Sherman 2014/08/15 20:42:37 nit: Pass by const-ref.
+ ~CredentialManagerCredentialInfo();
+
+ CredentialManagerCredentialType type;
+
+ base::string16 id;
+ base::string16 name;
+ GURL avatarURL;
+
+ // TODO(mkwst): The meaning of this field varies with the |type|. This will
+ // almost certainly have to evolve into something more complex as the API
+ // changes, but for the moment it's the simplest thing that works.
+ base::string16 data;
Ilya Sherman 2014/08/15 20:42:38 Hmm, I think I'd prefer to have more fields, where
+};
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_TYPES_H_
+
+

Powered by Google App Engine
This is Rietveld 408576698