#include "components/supervised_user/core/browser/supervised_user_error_page.h"
#include <string>
#include "base/check.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/grit/components_resources.h"
#include "components/signin/public/base/avatar_icon_util.h"
#include "components/strings/grit/components_strings.h"
#include "components/supervised_user/core/common/features.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/webui/jstemplate_builder.h"
#include "ui/base/webui/web_ui_util.h"
#include "url/gurl.h"
namespace supervised_user {
namespace {
static const int kAvatarSize1x = …;
static const int kAvatarSize2x = …;
std::string BuildAvatarImageUrl(const std::string& url, int size) { … }
}
int GetBlockMessageID(FilteringBehaviorReason reason, bool single_parent) { … }
std::string BuildErrorPageHtml(bool allow_access_requests,
const std::string& profile_image_url,
const std::string& profile_image_url2,
const std::string& custodian,
const std::string& custodian_email,
const std::string& second_custodian,
const std::string& second_custodian_email,
FilteringBehaviorReason reason,
const std::string& app_locale,
bool already_sent_remote_request,
bool is_main_frame,
bool show_banner) { … }
}