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

Unified Diff: components/password_manager/core/browser/affiliation_utils.h

Issue 1130213004: [Smart Lock] Make android URL prettifying util available on ios. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on top of master Created 5 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/password_manager/core/browser/affiliation_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/password_manager/core/browser/affiliation_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698