| // 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 COMPONENTS_PERMISSIONS_CHOOSER_TITLE_UTIL_H_ |
| #define COMPONENTS_PERMISSIONS_CHOOSER_TITLE_UTIL_H_ |
| |
| #include <string> |
| |
| namespace content { |
| class RenderFrameHost; |
| } |
| |
| namespace permissions { |
| |
| // Creates a title for a chooser using the origin of the frame. Returns the |
| // empty string if |render_frame_host| is null. |
| std::u16string CreateChooserTitle(content::RenderFrameHost* render_frame_host, |
| int title_string_id_origin); |
| |
| } // namespace permissions |
| |
| #endif // COMPONENTS_PERMISSIONS_CHOOSER_TITLE_UTIL_H_ |