#include "components/autofill/core/common/save_password_progress_logger.h"
#include <algorithm>
#include <string>
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/autofill/core/common/signatures.h"
namespace autofill {
namespace {
bool IsUnwantedInElementID(char c) { … }
}
SavePasswordProgressLogger::SavePasswordProgressLogger() = default;
SavePasswordProgressLogger::~SavePasswordProgressLogger() = default;
std::string FormSignatureToDebugString(FormSignature form_signature) { … }
void SavePasswordProgressLogger::LogFormData(
SavePasswordProgressLogger::StringID label,
const FormData& form_data) { … }
void SavePasswordProgressLogger::LogHTMLForm(
SavePasswordProgressLogger::StringID label,
const std::string& name_or_id,
const GURL& action) { … }
void SavePasswordProgressLogger::LogURL(
SavePasswordProgressLogger::StringID label,
const GURL& url) { … }
void SavePasswordProgressLogger::LogBoolean(
SavePasswordProgressLogger::StringID label,
bool truth_value) { … }
void SavePasswordProgressLogger::LogNumber(
SavePasswordProgressLogger::StringID label,
int signed_number) { … }
void SavePasswordProgressLogger::LogNumber(
SavePasswordProgressLogger::StringID label,
size_t unsigned_number) { … }
void SavePasswordProgressLogger::LogMessage(
SavePasswordProgressLogger::StringID message) { … }
std::string SavePasswordProgressLogger::GetFormFieldDataLogString(
const FormFieldData& field) { … }
std::string SavePasswordProgressLogger::ScrubURL(const GURL& url) { … }
void SavePasswordProgressLogger::LogValue(StringID label,
const base::Value& log) { … }
std::string SavePasswordProgressLogger::ScrubElementID(
const std::u16string& element_id) { … }
std::string SavePasswordProgressLogger::ScrubElementID(std::string element_id) { … }
std::string SavePasswordProgressLogger::GetStringFromID(
SavePasswordProgressLogger::StringID id) { … }
}