blob: d6428a3697c3a90e80d4f21be13d8cf15bb4f4c8 [file] [log] [blame]
// Copyright 2021 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_UI_WEBAUTHN_WEBAUTHN_UI_HELPERS_H_
#define CHROME_BROWSER_UI_WEBAUTHN_WEBAUTHN_UI_HELPERS_H_
#include "base/strings/string16.h"
namespace webauthn_ui_helpers {
// Takes a valid relying party identifier and elides it so that it's suitable to
// display on UI.
base::string16 RpIdToElidedHost(const std::string& relying_party_id,
size_t width);
} // namespace webauthn_ui_helpers
#endif // CHROME_BROWSER_UI_WEBAUTHN_WEBAUTHN_UI_HELPERS_H_