Adds method to PasswordStore which return origin in human readable form.
[chromium-blink-merge.git] / chrome / browser / ui / passwords / manage_passwords_view_utils.h
blob9f92fa9884bca4030025181dc813f7bb43a1d935
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
8 #include <string>
10 namespace autofill {
11 struct PasswordForm;
14 // Returns the origin URI in a format which can be presented to a user based of
15 // |password_from| field values. For web URIs |languages| is using in order to
16 // determine whether a URI is 'comprehensible' to a user who understands
17 // languages listed.
18 std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form,
19 const std::string& languages);
21 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_