blob: 0367e5822b90607d06d9f8036460d55e2879f1df [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_TITLE_UTIL_H_
#define CHROME_BROWSER_CHOOSER_CONTROLLER_TITLE_UTIL_H_
#include <string>
namespace content {
class RenderFrameHost;
}
// Creates a title for a chooser. For extensions the extension name is used if
// possible. In all other cases the origin of the main frame for
// `render_frame_host` is used.
std::u16string CreateExtensionAwareChooserTitle(
content::RenderFrameHost* render_frame_host,
int title_string_id_origin,
int title_string_id_extension);
#endif // CHROME_BROWSER_CHOOSER_CONTROLLER_TITLE_UTIL_H_