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

Unified Diff: chrome/browser/extensions/api/passwords_private/passwords_private_utils.h

Issue 2844963003: Introduce extensions::CreateUrlCollectionFromForm (Closed)
Patch Set: Revert One-Liner Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/passwords_private/passwords_private_utils.h
diff --git a/chrome/browser/extensions/api/passwords_private/passwords_private_utils.h b/chrome/browser/extensions/api/passwords_private/passwords_private_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..f4ec9800be17e786d2922424b15f4027c5baae44
--- /dev/null
+++ b/chrome/browser/extensions/api/passwords_private/passwords_private_utils.h
@@ -0,0 +1,25 @@
+// Copyright 2017 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 CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_UTILS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_UTILS_H_
+
+#include "chrome/common/extensions/api/passwords_private.h"
+
+namespace autofill {
+struct PasswordForm;
+}
+
+namespace extensions {
+
+// Obtains a collection of URLs from the passed in form. This includes an origin
+// URL used for internal logic, a human friendly string shown to the user as
+// well as a URL that is linked to. In case the passed in form is an Android
+// credential, the link URL is an affiliated website if possible, otherwise it
+// links to the PlayStore.
+api::passwords_private::UrlCollection CreateUrlCollectionFromForm(
+ const autofill::PasswordForm& form);
+}
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698