#include <string>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/strings/escape.h"
#include "chrome/browser/profile_resetter/profile_reset_report.pb.h"
#include "chrome/browser/profile_resetter/reset_report_uploader.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "google_apis/google_api_keys.h"
#include "net/base/load_flags.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"
namespace {
const char kResetReportUrl[] = …;
GURL GetClientReportUrl(const std::string& report_url) { … }
}
ResetReportUploader::ResetReportUploader(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
ResetReportUploader::~ResetReportUploader() { … }
void ResetReportUploader::DispatchReport(
const reset_report::ChromeResetReport& report) { … }
void ResetReportUploader::DispatchReportInternal(
const std::string& request_data) { … }
void ResetReportUploader::OnSimpleLoaderComplete(
SimpleURLLoaderList::iterator it,
std::unique_ptr<std::string> response_body) { … }
GURL ResetReportUploader::GetClientReportUrlForTesting() { … }