#include "chrome/browser/ui/file_system_access/file_system_access_restricted_directory_dialog.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/file_system_access/file_system_access_ui_helpers.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/dialog_model.h"
#include "ui/base/models/dialog_model_field.h"
namespace {
HandleType;
SensitiveEntryResult;
std::unique_ptr<ui::DialogModel>
CreateFileSystemAccessRestrictedDirectoryDialog(
content::WebContents* web_contents,
const url::Origin& origin,
HandleType handle_type,
base::OnceCallback<void(SensitiveEntryResult)> callback) { … }
}
void ShowFileSystemAccessRestrictedDirectoryDialog(
const url::Origin& origin,
HandleType handle_type,
base::OnceCallback<void(SensitiveEntryResult)> callback,
content::WebContents* web_contents) { … }
std::unique_ptr<ui::DialogModel>
CreateFileSystemAccessRestrictedDirectoryDialogForTesting(
const url::Origin& origin,
HandleType handle_type,
base::OnceCallback<void(SensitiveEntryResult)> callback) { … }