Index: components/password_manager/core/browser/affiliation_utils.h |
diff --git a/components/password_manager/core/browser/affiliation_utils.h b/components/password_manager/core/browser/affiliation_utils.h |
index b5b95463f267be2e6387dc4fc32f4b5f9bcc1130..0231ce755f614a210a2c74bf2c6a08ec978fe281 100644 |
--- a/components/password_manager/core/browser/affiliation_utils.h |
+++ b/components/password_manager/core/browser/affiliation_utils.h |
@@ -50,9 +50,15 @@ |
#include "base/containers/hash_tables.h" |
#include "base/logging.h" |
+#include "base/strings/utf_string_conversions.h" |
#include "base/time/time.h" |
+#include "net/base/net_util.h" |
#include "url/url_parse.h" |
+namespace autofill { |
+struct PasswordForm; |
+} // namespace autofill |
+ |
namespace base { |
class CommandLine; |
} // namespace base |
@@ -193,6 +199,13 @@ bool IsPropagatingPasswordChangesToWebCredentialsEnabled( |
bool IsAffiliationRequestsForDummyFacetsEnabled( |
const base::CommandLine& command_line); |
+// Returns the origin URI in a format which can be presented to a user based of |
+// |password_from| field values. For web URIs |languages| is using in order to |
+// determine whether a URI is 'comprehensible' to a user who understands |
+// languages listed. |
+std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form, |
+ const std::string& languages); |
+ |
// For logging use only. |
std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri); |