Index: components/password_manager/content/common/credential_manager_content_utils.h |
diff --git a/components/password_manager/content/common/credential_manager_content_utils.h b/components/password_manager/content/common/credential_manager_content_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..77315f72d83073515e28dfed0b8e98dc9ba641b6 |
--- /dev/null |
+++ b/components/password_manager/content/common/credential_manager_content_utils.h |
@@ -0,0 +1,22 @@ |
+// 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 COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_CONTENT_UTILS_H_ |
+#define COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_CONTENT_UTILS_H_ |
+ |
+#include "components/password_manager/core/common/credential_manager_types.h" |
+ |
+namespace blink { |
+class WebCredential; |
+}; |
+ |
+namespace password_manager { |
+ |
+// Returns a CredentialInfo struct populated from |credential|. |
+CredentialInfo WebCredentialToCredentialInfo( |
+ const blink::WebCredential& credential); |
+ |
+} // namespace password_manager |
+ |
+#endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_CONTENT_UTILS_H_ |