#include "chrome/browser/net/chrome_report_sender.h"
#include "base/functional/bind.h"
#include "net/base/load_flags.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
namespace {
static const int kMaxSize = …;
ErrorCallback;
class SimpleURLLoaderOwner { … };
}
void SendReport(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
net::NetworkTrafficAnnotationTag traffic_annotation,
const GURL& report_uri,
const std::string& content_type,
const std::string& report,
base::OnceClosure success_callback,
ErrorCallback error_callback) { … }