#include "components/safe_search_api/safe_search_util.h"
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "components/google/core/common/google_util.h"
#include "net/cookies/cookie_util.h"
#include "net/http/http_request_headers.h"
#include "url/gurl.h"
namespace {
bool HasSameParameterKey(std::string_view first_parameter,
std::string_view second_parameter) { … }
std::string AddSafeSearchParameters(const std::string& query) { … }
bool IsSafeSearchSettingUrl(const GURL& url) { … }
}
namespace safe_search_api {
const char kSafeSearchSafeParameter[] = …;
const char kSafeSearchSsuiParameter[] = …;
const char kYouTubeRestrictHeaderName[] = …;
const char kYouTubeRestrictHeaderValueModerate[] = …;
const char kYouTubeRestrictHeaderValueStrict[] = …;
const char kGoogleAppsAllowedDomains[] = …;
void ForceGoogleSafeSearch(const GURL& url, GURL* new_url) { … }
void ForceYouTubeRestrict(const GURL& url,
net::HttpRequestHeaders* headers,
YouTubeRestrictMode mode) { … }
}